Simple Bookmark API built with NestJS and Prisma
-
git --version -
node -v -
npm i -g @nest/cli nest --version -
psql --version
-
Clone the repository
git clone https://github.com/NaufalK25/bookmark-api.git -
Install dependencies
npm i -
Copy
.env.exampleto.envand.env.test -
Create the database for development and testing
-
Apply database migration(s)
npm run prisma:deploy -
Generate typing for GraphQL
npm run graphql:generate -
Run the server
npm run start:dev
-
Rest API
http://localhost:3000/api http://localhost:3000/docs # for documentation -
GraphQL
http://localhost:3000/graphql