API Setup

This document is the step by step guide for the setting up of Back End API for your eCommerce portal.
Please ensure that Prerequisites have been installed before proceeding with the API Setup
Step 1 - Extract Source code, you will find api folder, then open your project directory terminal and give below commands
$ npm install
Step 2 - Set up Environment configuration
Step 3 - Import Spurtcommerce.sql(which is in your api folder) in your database and give username,password, database name in .env file.
Step 4- To run the project give the following command in your terminal
$ npm start serve
To build the Spurtcommece api for the server deployment, run the following command in project directory
$ npm run build