GithubHelp home page GithubHelp logo

pokowaka / mbt.guide-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cusac/mbt.guide-backend

0.0 0.0 0.0 1.86 MB

backend for the mbt.guide react app

License: MIT License

JavaScript 97.52% Dockerfile 0.20% Shell 2.28%

mbt.guide-backend's Introduction

alt tag

This is the backend for the mbt.guide projects. The code is based off of the backend portion of the appy app which heavliy utilizes the rest-hapi plugin for the hapi framework, which means MongoDB is used as a datastore. Please reference the docs for these tools for details.

Readme contents

Requirements

You need Node.js (>=8.10.0) installed and you'll need access to a MongoDB database.

Back to top

Installation

$ git clone https://github.com/cusac/mbt.guide-backend.git
$ cd mbt.guide-backend
$ npm install

Back to top

Configuration

  • Copy .env-sample to .env and edit as needed. Don't commit .env to your repository.

First time setup

WARNING: This will clear all data in the following MongoDB collections (in the db defined in restHapiConfig.mongo.URI, default mongodb://localhost/appy) if they exist: user, role, group, permission, session, and authAttempt.

If you would like to seed your database with some data, run:

$ npm run seed

NOTE: The password for all seed users is root.

Back to top

Running the backend

To quickly run the app locally, simply run:

$ npm start

Once the app is running point your browser to http://localhost:8080/ to view the Swagger docs.

Back to top

Testing

Currently the majority of the backend tests are e2e tests that rely heavily on scripts and docker compose. These can be found in test/e2e.

To run these tests run (from the root directory):

bash run_e2e.tests.sh

License

MIT

Back to top

mbt.guide-backend's People

Contributors

jkheadley avatar franksmicro avatar

mbt.guide-backend's Issues

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.