Code Monkey home page Code Monkey logo

express-base-main's Introduction

Express Base Main

Setup

In order to define all enrironments variables needed dockerUpScriptTemplate.example.sh file should be modified with proper values.

Dependencies

  • Docker. Download and install it from Get Docker
  • VirtualBox (optional but recommended).

Repos

Clone next repositories in the same container folder:

Start with docker

  1. cd into express-base-api folder and run:
npm install
  1. cd into express-base-main folder and run:
docker-compose up -d --build
*If you need to define evironments variables just define them before docker-compose command.
Example: SECRET_KEY=RunsWithFries docker-compose up -d --build

Start within VirtualBox (recommended)

Optionally you can run docker machines withing an VirtualBox instance:

docker-machine create -d virtualbox <vm_name>
# Macke sure you run before last command! Each time you open a new terminal (either tab or window) you must eval again.
eval "$(docker-machine env <vm_name>)"
docker-compose up -d --build

Migrations

docker-compose run base-api node_modules/.bin/sequelize db:drop
docker-compose run base-api node_modules/.bin/sequelize db:create
$ docker-compose run base-api sequelize db:migrate        # Run pending migrations.
$ docker-compose run base-api sequelize db:migrate:undo   # Revert the last migration run.
$ docker-compose run base-api sequelize help              # Display this help text.
$ docker-compose run base-api sequelize migration:create  # Generates a new migration file.
$ docker-compose run base-api sequelize init              # Initializes the project.
$ docker-compose run base-api sequelize version           # Prints the version number.

express-base-main's People

Contributors

m-revetria avatar mtnbarreto avatar

Watchers

Enrique Galindo avatar James Cloos avatar Agustin Hernandez avatar  avatar Rodrigo Lavista avatar Santiago avatar Tincho avatar Alvaro Señorale avatar Matías avatar  avatar

Forkers

isabella232

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.