Coder Social home page Coder Social logo

0red / vfr-planner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bwilczek/vfr-planner

0.0 0.0 0.0 2.21 MB

Rewrite of VFR planning web application lecimy.org from ancient PHP to react/redux SPA with rails API as backend.

Shell 0.52% JavaScript 69.65% Ruby 24.73% CSS 0.46% HTML 3.32% Dockerfile 0.62% SCSS 0.70%

vfr-planner's Introduction

CircleCI build status for master

vfr-planner

Re-implementation VFR planning web application lecimy.org from ancient PHP to react/redux SPA with rails API as backend.

This is a very early stage of development - lots of prototyping going on and functionality is limited.

Setting up development environment

# clone this repo
cd vfr-planner

# set secrets.js
# set up database

rails db:migrate
rails server --daemon -b 0.0.0.0

cd client
npm install
npm run dev

Running it

# clone this repo
cd vfr-planner

# build the docker container
docker build -t vfr-planner .

# provide database that will be visible for container under name mysql (docker --link or --add-host)
# db_user: vfr, db_pass: vfr, db_name: vfr
# for example using docker:
docker run --rm --name vfr-mysql -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=vfr -e MYSQL_USER=vfr -e MYSQL_PASSWORD=vfr -p 3306:3306 mysql/mysql-server:5.6

# then run the vfr-planner container providing your configuration
docker run -d \
  --name vfr-planner \
  --link mysql \
  -p 3000:3000 \
  -e 'RAILS_ENV=production' \
  -e 'SECRET_KEY_BASE=XXXX' \
  -e 'FACEBOOK_APP_ID=XXXX' \
  -e 'GOOGLE_APP_ID=XXXX.apps.googleusercontent.com' \
  -e 'GOOGLE_MAPS_KEY=XXXX' \
  -e 'GEOCODE_API_KEY=XXXX' \
  -e 'RAILS_SERVE_STATIC_FILES=true' \
  vfr-planner

Application should be running at localhost:3000

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.