A simple e-commerce backend service using :
*nb: The structure and clean architecture in this project aren't perfect yet, but this is merely an approach to implementing Uncle Bob's clean architecture concept. It will be updated if there are any changes in the future.
this e-commerce is currently extended with the following requirements.
Instructions on how to use them in your own application are linked below.
| Requirement | Version |
|---|---|
| Node JS | 20.10.0 |
| Express JS | 4.16.1 |
| MySQL | 8.0.30 |
Make sure the requirements above already install on your system.
Clone the project to your directory and install the dependencies.
$ git clone https://github.com/wisnuakbara/simple-ecommerce$ cd simple-ecommerce$ npm installCopy the .env.example and rename it to .env.
$ cp .env.example .envChange the config for your local server.
DB_HOST="localhost"
DB_PORT=3306
DB_USER="root"
DB_PASSWORD=""
DB_DATABASE="ecommerce_db_v1"
DB_DIALECT="mysql"
JWT_SECRET="this-is-secret"
JWT_EXPIRATION="1h"Run the migration.
$ npm run db:migrateRun the seeder.
$ npm run db:seedthis will run server with nodemon enabled
$ npm run dev