Develop a user management API using Node.js and Express.js with TypeScript and link the API to a database.
- Implement CRUD operations for managing users.
- Utilize Node.js for backend development.
- Use Express.js for API creation with TypeScript.
- Link the API to a database (e.g., MongoDB, PostgreSQL).
- Write test cases for the API endpoints using Jest.
- Ensure proper error handling and validation for API requests.
- Document the API endpoints using tools like Swagger or OpenAPI.
- Node.js
- Express.js (with TypeScript)
- MongoDB or PostgreSQL
- Jest (for testing)
- Swagger or OpenAPI (for API documentation)
- Node.js (>=14.x)
- npm (>=6.x) or yarn
- MongoDB or PostgreSQL
-
Clone the repository
Navigate to local folder where repo is cloned by cd your-repository
-
Run the application npm start (Includes dependency installation , build and running the project)
- Create, Read, Update, and Delete users using the API endpoints.
- Swagger or OpenAPI documentation can be accessed at /api/docs.
sh npm run test
yarn test