RESTful API server for a computer store, built with Express.js, MongoDB and ❤️
The final project of
Build RESTful API with MongoDB, Node.js and Express
(ITE-497) course.
- Install dependencies
$ pnpm i
-
Config environment variables (
.env
)- Example:
PORT=3000
MONGODB_URI=Your_MongoDB_URI_for_dev
MONGODB_URI_TEST=Your_MongoDB_URI_for_test
DOMAIN=http://localhost:3000
JWT_SECRET=Your_JWT_Secret
- Start development server
$ pnpm dev
- Start the server
$ pnpm start
- Test, bundle, and build a Docker Image, respectively
$ pnpm build:docker
API documentation is available at Postman.
Licensed under the MIT License.