E-Commerce Backend handles all request for E-Commerce Client.
This project connect to MongoDb
database.
You need to create a .env
file and add the following lines:
MONGO_URI=<your-connection>
git clone https://github.com/aogallo/ecommerce-backend
Moving to the directory
cd ecommerce-backend
Install dependencies
yarn install
Or
npm install
In the project directory, you can run:
Build the app for production environment. the dist
directory will be created.
Compile the app with tsc
Run the app for production environment.
Run the app in local environment.
Run the app in local environment with nodemon
command.
Run de app with tsc -w
Format the files with prettier and the .prettierignore
and .prettierrc.json
configuration file
Run eslint
for the project.
All husky stuff
Generate the Graphql types with the graphql generator
library