Giter Site home page Giter Site logo

payment-portal-dummy-api's Introduction

payment-portal-dummy-api

Dummy CRUD API for payment portal

Instructions for installing and running the dummy API:

To create local DB:

  1. Install MongoDB Community from https://docs.mongodb.org/manual/installation/
  2. From a Terminal, start MongoDB (./bin/mongod)
  3. From another Terminal, start the Mongo Shell (./bin/mongo)
  4. In the Mongo Shell, create a db called "paymentPortal" by typing: use paymentPortal
  5. You can close the Mongo Shell

If you use an external Mongo DB:

  1. go to server.js and change this line: mongoose.connect('mongodb://localhost:27017/paymentPortal'); and replace the mongodb:// url for the external DB.

To install the dummy API:

  1. In a new Terminal, cd to the directory containing package.json
  2. run "npm install"

To run the DB:

  1. In a terminal, go to MongoDB install directory
  2. run "./bin/mongod"

To run the API:

  1. In a terminal, go to the directory containing server.js
  2. run "npm start"
  3. If you make changes to the code, you have to restart the API.

payment-portal-dummy-api's People

Contributors

eoy4 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.