ston1x / mealtime-platform

Main, root repo of the Mealtime project.

Home Page:https://mealtime-react.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mealtime-platform

This is the main (parent) repo. It builds and runs containers for Backend (Rails API), PostgreSQL and Frontend (React) using docker-compose.

Setup

  1. Install docker and docker-compose

    Make sure that daemon is running and available

  2. Build Images

    Linux:

    docker-compose build

    or

    docker-compose up --build
  3. Setup db

    docker-compose exec backend rake db:setup

    NOTE: you'll have to re-run

    docker-compose exec backend rake db:migrate

    whenever there are new migrations.

  4. Start server or run commands (for example tests)

    docker-compose up
    docker-compose run backend COMMAND

    you can also pass environment through -e parameter

    docker-compose run -e "RAILS_ENV=production" backend COMMAND

About

Main, root repo of the Mealtime project.

https://mealtime-react.vercel.app/