- Instructions
- Dependencies
- Description
- Contributions
Follow below steps to start development environment:
- Download or clone this repository.
- cd into this folder
cd agro-mart-server
. - Install the required dependencies using
npm install
command. - Before starting the development server you need to set an environmental variable. Set
jwtKey
value found in/config/default.json
file. - Once dependencies are installed, now it's time to start development server. Run
node app.js
command to start localhost server. The server will start on http://localhost:5000.
Follow below steps to start test environment:
- If you want to run all tests (unit and integration) then run
npm test
command. This command will also eject the coverage files showing how much code has been tested. - If you want to run just unit tests then run
npm test-unit
command. - If you want to run just integration tests then run
npm test-integration
command.
All required development and production dependencies are listed in package.json file.
This application is integrated with frontend part of agro-mart-client
project. You can find it's source code here.
This application provides RESTful API's to the frontend part of above mentioned project.
Feel free to raise an issue if you find any and also feel free to contribute to this project. Raise a pull request of the solution 😄.
HAPPY CODING 💻
HAPPY LEARNING 📚