** Setup:
-
Create file .env
-
Require: nodejs >= 18.
-
Fill content.
PORT=<your_port> -- port run local
DATABASE_URI=mongodb+srv://:@cluster0.lczalmy.mongodb.net/?retryWrites=true&w=majority -- mongodb uri to connect
ACCESS_TOKEN=<your_secret_access_token> -- access token for jwt
REFRESH_TOKEN=<your_secret_refresh_token> -- refresh token for jwt
** Run:
- Turn on cmd.
- And run: $ npm install $ npm run dev
- Access url: http://localhost:<your_port>/api-docs to test API with Swagger UI.