Skip to content

richeyphu/express-comcraft

Repository files navigation

express-comcraft

cover

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.

Usage

Setup

  • 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

Run

  • Start development server
$ pnpm dev
  • Start the server
$ pnpm start
  • Test, bundle, and build a Docker Image, respectively
$ pnpm build:docker

Documentation

API documentation is available at Postman.

Postman

License

Licensed under the MIT License.