This is the initial setup for the project, ecommerce-app-legends-bn-
This is the Full Ecommerce App that should be used for the whole world for prodcts purchasing.
- install Docker and docker-compose as well // if you want to run app in docker
- clone the project
git clone; - go into cloded project's root directory
- run
npm installfor installing dependencies - copy .env.example to .env and set PORT and other environment variables
- run
npm run devfor development - access the project on your local machine
ie: =>127.0.0.1:$port
Having Docker installed is a prerequisite
- configure the environment variables in
envaccording to.env.example
PORT=Node_exposed_port => port the app will run from
And the rest go postgresql database:
DB_USER=postgres_username
DB_PASSWORD=postgres_password
DB_NAME=postgres_database
DB_PORT=postgres_port- run
npm run docker:compose:up: To build and start app in Docker - run
npm run docker:compose:clean: To stop containers and clean up - Wait the images to build & pull and be ready, ...
- Then access the project on your on port
PORTand - routes api/users/all :
GET - routes api/users/add :
POST
127.0.0.1:$port/docs and boooom. The project setup is all well set up
- for development , push the project to the your own repository
- Nodejs version 18.x
- OS X
- Docker installed on your machine
locales:This folder contains all the translation files for the application to use multiple languages.src:This folder contains all the source code of the application. --api:This folder contains all the API routes. --config:This folder contains configuration files for the application. --controllers:This folder contains the business logic of the application. --models:This folder contains the data models of the application. --middlewares:This folder contains all the middleware functions for the application. --migration:This folder contains table schema for the database. --seeders:This folder contains sample data for tables exist in the database. --.env.example:This file contain sample data for .env file. --.sequelizerc:This file contains configuration of database components. --utils:This folder contains all the utility functions for the application. --docs:This folder contains all the documentation files for the application.node_modules:This folder contains all the installed dependencies for the application.package.json:This file contains the metadata of the application and its dependencies.README.md:This file contains the documentation of the application.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- main
- ch-project-initialization
- ch-setup-database
- develop -ft-add-to-cart -ft-two-factor-auths