Coder Social home page Coder Social logo

donation_platform's Introduction

README

Development installation

  1. Install docker
  2. Get docker-compose
  3. Clone repo
  4. Run "docker-compose build"
  5. Run "docker-compose up"
  6. Point your browser to http://localhost:3000

You do NOT need any local ruby installation. In development mode the code will be bind mounted and the database will be an sqlite3 file in db/. Code changes can be made locally with the IDE of your choice.

Running rails or rake commands

All required rails commands must be run inside of the running docker container.

  1. Run "docker ps" and get your container ID
  2. Run "docker exec -it $CONTAINER_ID bash"
  3. Run your rails commands like "rails generate scaffold ...."

There is one downside on Linux hosts! Files generated within the container will be owned by "root", causing issues when committing them.

Solution: run "./fix_filesystem.sh" on your local machine before committing.

Database migrations

Database changes via migrations will be automatically performed at each container start via "rake db:migrate". You can run the command directly from inside the container as well.

donation_platform's People

Contributors

saschadaniels avatar

Watchers

Stefan Wintermeyer avatar  avatar James Cloos 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.