Skip to content

BaseMax/simple-api-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple API in TypeScript

A lightweight and minimal REST API built with TypeScript, Express, and SQLite.

Features

  • Express.js for handling API routes
  • SQLite3 as the database (without Prisma)
  • TypeScript for type safety
  • Supertest and Bun.js for testing

Installation

Ensure you have the following installed:

  • Node.js (>=16)
  • Bun (for testing, optional)

Clone the Repository:

git clone https://github.com/BaseMax/simple-api-typescript.git
cd simple-api-typescript

Install Dependencies

npm install

Usage

Start the Server:

npm run dev

This will start the API on http://localhost:3000.

Run Tests:

bun test

API Endpoints

Create a User

POST /users

Request Body:

{
  "name": "John Doe",
  "email": "johndoe@example.com"
}

Get All Users

GET /users

Get a User by ID

GET /users/:id

Delete a User

DELETE /users/:id

License

This project is licensed under the MIT License.

Copyright (c) 2025 BaseMax

About

A lightweight and minimal REST API built with TypeScript, Express, and SQLite.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy