This is a basic REST API built using Node.js, TypeScript, and MongoDB. The API includes endpoints for getting all customers, getting a single customer, and creating a new customer.
To get started with this API, follow these steps:
- Clone the repository to your local machine.
- Install the necessary dependencies by running
npm install
in the project directory. - Start the API by running
npm start
in the project directory.
- GET
/customers
- Returns a list of all customers. - GET
/customers/:id
- Returns the customer with the specified id. - POST
/customers
- Creates a new customer.
- Node.js
- TypeScript
- MongoDB
This project is licensed under the MIT License - see the LICENSE file for details.
- This API was built following the tutorial found in the video "How to build a REST API with TypeScript & MongoDB" by Tom Shaw.