/ecommerce_api

Full Crud Ecommerce Api

Primary LanguageJavaScriptMIT LicenseMIT

Ecommerce API

Backend API for a single vendor ecommerce app.

Features

User CRUD, Product CRUD, Order CRUD, User Authorization & Authentication, Review

Usage Instruction

create ".env" file in the root directory of the app. Add NODE_ENV, PORT, MONGO_URI, JWT_SECRET

Install Dependencies

npm i
If you face installation problem, then please delete package-lock.json file and run npm i

Run App

# Run in dev mode
npm run dev

# Run in prod mode
npm start

# Seed database
npm run data:import

or delete seeded database
npm run data:destroy -d

Version

1.0.0

License

MIT