Giter VIP home page Giter VIP logo

backend-service's Introduction

Backend Service

A Node.js backend service application.

Installation

$ npm install

Usage

Start server

$ npm run start

Run in Docker

$ docker build -t backend-service .

$ docker compose up -d

Heroku

App Setup

$ heroku login

$ heroku create <app-name>

# Add Postgres and CloudAMQP add-ons to app
$ heroku addons:create heroku-postgresql:hobby-dev
$ heroku addons:create cloudamqp:lemur

# Set config var to access Postgres without SSL
$ heroku config:set PGSSLMODE=no-verify

# Set config vars that we need for our app
$ heroku config:set JWT_SECRET=some_secret
$ heroku config:set JWT_EXPIRY=900
$ heroku config:set SALT_ROUNDS=10

# Set the stack to container for Docker deployment
$ heroku stack:set container

Automatic Deployment from GitHub

  1. Go to your Heroku app dashboard > Deploy tab
  2. Under Deployment method, select GitHub and allow access
  3. Search and connect to your GitHub repository
  4. Under Automatic deploys:
    1. Check Wait for CI to pass before deploy
    2. Select Enable Automatic Deploys

backend-service's People

Contributors

qinjiang03 avatar

Watchers

 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.