A simplified version of an online shopping application. It was created for demonstration purpose only.
Customer Area
Admin Area
Run npm i
to install package dependencies.
Run cp .env.sample .env
to create the configuration file.
NOTE: Please make the proper changes in ".env" file.
* For sending e-mails, you must create an account in SendGrid. Then, navigate to "Settings > API Keys" menu, generate a new key and change your config file using the generated token.
* For using payments, you must create an account in Stripe. Then, navigate to "Developers > API Keys" menu, copy the Publishable/Secret keys and change your config file using these tokens. ** You must set an account name; otherwise, it will not work.
Run docker-compose up --build
to set up a quick database. ** You can skip this step if you don't want to use Docker.
IMPORTANT: Before running above command, make sure you have docker and docker-compose installed. * It runs the docker-compose.yml file.
Run npm run seed
to Seed data into the database.
This command creates a couple of products and the Admin user (Username:
[email protected]
/ Password:password
).
Run npm run start:dev
for starting the server.
This app was created based on Maximilian Schwarzmüller's course. NodeJS - The Complete Guide.