visand is an e-commerce API for an online T-Shirt shop which allows users to search, add items to their shopping cart, create order and pay for their orders successfully.
To setup visand, the following should be installed on your machine.
You also need to setup
If you don't have these already, click on any of them to install it on your local machine.
If you have all the prerequisites you can use the steps below to setup visand locally.
- Open your terminal and
cd
to the directory where you will like to download visand, then run
git clone https://github.com/chukwuemekachm/visand.git
- Change to the visand directory
cd visand
This section assumes your local MySQL installation has a root
user without password
- Run the command below to create a database
npm run create:db
- Run the command below to to populate the database
npm run migrate:db
- Run the command below to create a
.env
file from the sample provided
touch .env
cp .env.sample .env
- Now update the environmental variables with the variables you want to use for your visand installation.
*Note* Ensure that you've created all the required accounts for ths sandboxes above such as Paypal, SendGrid and Facebook.
Update .env with the sandbox keys
- Run the command below to install
node
dependencies
npm install
- To start up your newly installed visand run
npm run start
- Chima Chukwuemeka @chukwuemekachm
This project is licensed under the MIT License - see the LICENSE.md file for details