Skip to content

The Nest.js and GraphQL API is a scalable web API built using TypeScript. It leverages the power of Nest.js, a progressive Node.js framework, to develop efficient and maintainable server-side applications. The API is designed to optimize performance and scalability, making it suitable for deployment on cloud platforms. To ensure optimal data handl

Notifications You must be signed in to change notification settings

ankitrout2903/bookmark-graphql-api

Repository files navigation

Nest Logo

Bookmark API

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.

Features

  • 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.

Technologies Used

  • 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.
  • GraphQL: A query language for APIs and a runtime for executing queries with your existing data.
  • 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.
  • Microservices Architecture: An architectural style that structures an application as a collection of loosely coupled services, each serving a specific business goal, and communicating with each other via lightweight protocols like HTTP or messaging queues.

Installation

  1. Clone the repository:

    git clone https://github.com/ankitrout2903/bookmark-api.git
    
    

Installation

$ yarn install

Running the app

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

Test

# 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

About

The Nest.js and GraphQL API is a scalable web API built using TypeScript. It leverages the power of Nest.js, a progressive Node.js framework, to develop efficient and maintainable server-side applications. The API is designed to optimize performance and scalability, making it suitable for deployment on cloud platforms. To ensure optimal data handl

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published