Giter Club home page Giter Club logo

bookmarks-api's Introduction

Bookmarks API

A bookmark management API built with Nest JS and TypeScript. This study project is a dive into the best practices of Node JS back-end technologies. It leverages Docker and Docker Compose for containerized databases, employs Prisma as the ORM for streamlined database operations, and integrates JWT for secure authentication.

Installation

  1. Clone the repository:
  git clone [email protected]:afonsofn/bookmarks-api.git && cd bookmarks-api
  1. Install the dependencies:
  npm install

Database Configuration

The project uses Prisma as an ORM and has convenience scripts to manage the database:

  1. Start the dev database:
  npm run db:dev:start
  1. Apply migrations to the dev database:
  npm run prisma:dev:deploy
  1. Open Prisma Studio for the dev database:
  npm run prisma:dev:studio

Other useful scripts:

  • Restart the development database:
  npm run db:dev:restart
  • Delete the development database:
  npm run db:dev:delete

Similar scripts are available for the test environment, just replace dev with test in the commands above.

Execution

  • Start API in dev mode:
  npm run start
  • Start API in dev watch mode :
  npm run start:dev
  • Start API in prod mode :
  npm run start:prod

Testing

  • Run end-to-end tests:
  npm run test:e2e

Formatting and Linting

  • Format the code with Prettier:
  npm run format
  • Run ESLint:
  npm run lint

License

This project is distributed under the MIT license.

Developed by @Raff

bookmarks-api's People

Contributors

afonsofn avatar

Stargazers

Robson Silva avatar Leonel Sanches da Silva avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.