Code Monkey home page Code Monkey logo

bridge-project's Introduction

Bridge Backend Project

Installation

Install Docker Compose: https://docs.docker.com/compose/install/

Build the app and run it:

$ yarn
$ docker-compose up --build

You should only need to do this the first time.

Run the app locally

You should only have to build with docker compose the first time you install the app, if you add new dependencies or if the Dockerfile configuration changes. Once you've built it you should be able to run the app locally using:

$ docker-compose up

Run the app in production

$ yarn start

Database

To create a new migration

$ npm run db:migrate:create -- <migration_name>

To run a migration

$ npm run db:migrate:latest

To rollback a migration

$ npm run db:migrate:rollback

To seed the database

$ npm run db:seed

Middleware

Middleware functions are functions that have access to the request object (req), the response object (res), and the next middleware function in the application’s request-response cycle.

Middleware can be at the application level or at the router level.

Testing

Using jest and supertest for API testing.

Environment variables

Environment variables are to be loaded in through a .env file. Anything that needs to be configured by environment or kept a secret should live in the .env file and it should never be checked in.

Commit messages

In order to keep a clean git history merges should always be squashed with a consistent commit message style.

bridge-project's People

Contributors

tessalt avatar kristenannapurna avatar nicholasgwk avatar

Watchers

James Cloos avatar  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.