Skip to content

luong/nextcart-api-nodejs

Repository files navigation

NextCart API - Simple Rest API for Shopping Website

This project is for researching only so that it doesn't cover all aspects for a fullfiled shopping cart.

Dependences

This project is tested against the following packages:

Keep in mind that the versions above are not hard requirements.

Installation and Usage

At root of project, run npm to install library:

npm install

Then copy .env.example file to .env and correct your own settings:

copy .env.example .env

To deploy this project at your localhost:

npx prisma migrate dev
npm run dev

To deploy this project at a production server:

npx prisma deploy
npm run server

Development

Code of this project comes with unit & integration tests by using Vitest. The following command to run tests:

copy .env.example .env.test
npm run test

Copyright and License

Copyright (c) 2023 Luong, and distributed under the MIT License.

About

Search project of REST API with NodeJS, Typescript, Prisma, Vitest

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors