Skip to content

LABS-EU3/shopping_cart_backend

Repository files navigation

Build Status Maintainability Test Coverage Coverage Status

Pure Retail: A platform for market traders, craftspeople, and hobbyists.

Project Overview

Trello Board

Product Canvas

API doucmentation

Link to API deployed to Heroku

Production Deployment
Staging Deployment

View API Reference Here

Run in Postman

Getting started

To get this project up and running locally:

  1. Clone this repo
  2. Run npm install to install all of the required dependencies.
  3. Install MongoDB Community Edition on you local machine. Instructions can be found here.
  4. Create a db called shopping_cart & shopping_cart_test
> use shopping_cart
> use shopping_cart_test
  1. Create a .env file in the root of the project with the following environment variables:
DB_CONNECTION_TEST="mongodb://localhost/shopping-cart-test"
DB_CONNECTION="mongodb://localhost/shopping-cart"
PORT=4000
JWT_SECRET="<put in your jwt_secret here>"
TWILIO_ACCOUNT_SID=<put in your account_sid here>
TWILIO_AUTH_TOKEN=<put in your auth_token here>
TWILIO_NUMBER="<put in your twilio number here>"
STRIPE_SECRET=<put your stripe secret key here>
SENDGRID_API_KEY=<put api key here>
FROM_EMAIL= testemail@gmail.com
STRIPE_CLIENT_ID=<put your stripe secret client here>
STRIPE_HOLDER=123456789000

To start server locally

npm run server

To run test locally

npm run test-dev

To apply linting

npm run lint

Contributors

Benjamin Ajewole Alexander Oguejiofor. Apetsi Ampiah Dimeji Lawal-Are Justin Irabor

Shaun Orpen Tolu Atolagbe

License

The MIT License (MIT)

Copyright (c) 2020 Pure Retail

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

📈 Team project created using React, Node.js, MongoDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published