A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
The Bookmark API is a RESTful API that allows users to manage bookmarks. It provides endpoints for creating, retrieving, updating, and deleting bookmarks, as well as user authentication and authorization.
- User authentication: Users can sign up, sign in, and obtain access tokens for authentication.
- Bookmark management: Users can create, retrieve, update, and delete bookmarks.
- User management: Users can retrieve their own user profile and update their user information.
- Nest.js: A progressive Node.js framework for building efficient and scalable server-side applications.
- Prisma: A modern database toolkit for Node.js and TypeScript.
- PostgreSQL: A powerful, open-source relational database management system.
- JWT: JSON Web Tokens for secure authentication and authorization.
- Jest: A JavaScript testing framework for writing unit and integration tests.
- Docker: A containerization platform for building, deploying, and running applications.
-
Clone the repository:
git clone https://github.com/ankitrout2903/bookmark-api.git
$ yarn install
Install Docker desktop before running api https://www.docker.com/products/docker-desktop/
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:cov
yarn // install
yarn db:dev:restart // start postgres in docker and push migrations
yarn start:dev // start api in dev mode