项目作者: javiercbk

项目描述 :
A dockerized node.js web app using express, sequelize (mysql) for educational purposes
高级语言: JavaScript
项目地址: git://github.com/javiercbk/budgeteala.git
创建时间: 2017-12-23T20:19:45Z
项目社区:https://github.com/javiercbk/budgeteala

开源协议:The Unlicense

下载


Build Status
Coverage Status

Budgeteala

Budgeteala is a dockerized web application meant for educational purposes. It aims to provided a non trivial example of a dockerized web application using express and sequelize.

Running budgeteala in a development environment

Go to the root of the project and execute

  1. docker-compose build
  2. docker-compose up

That will expose the web application in port 5000 and port 9229 will be available for a remote debugger to be attached.

Running budgeteala tests

In the command line type: npm test. The launch.json file contains the proper configuration to run the test from vscode as well.

Running budgeteala in a production

If you want to deploy this application in a server it is recommended to create a production docker-compose file that overrides the default environment, you can name it docker-compose.prod.yml. That file SHOULD NOT be pushed in the repository and MUST be kept secret.

In this case you can start the server like this:

  1. docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d