Giter Site home page Giter Site logo

docloader's Introduction

Docloader

Build Status codecov Maintainability

A simple document management application.

Deployment

https://docloader.herokuapp.com/

Ruby version

2.5.5

Rails version

5.2

Installation

  • Clone this repository.
  • Run docker-compose build.
  • Run docker-compose run web bundle install.
  • Run docker-compose run web rake db:create.
  • Run docker-compose run web rake db:migrate.
  • Run docker-compose up.
  • Go to localhost:3000 to view the application.

Link to Hosted application

Stopping the application

  • Run docker-compose down.

Restart the application

To restart the application run docker-compose up in the project directory.

Rebuild the application

If you make changes to the Gemfile or the Compose file to try out some different configurations, you need to rebuild. Some changes require only docker-compose up --build, but a full rebuild requires a re-run of docker-compose run web bundle install to sync changes in the Gemfile.lock to the host, followed by docker-compose up --build.

Running the bash

  • Run docker-compose run web /bin/bash

Running tests

  • Run docker-compose run web /bin/bash
  • Then run docker-composae run web rake test
  • Todo: add Rspec to use rspec spec/path_to_spec_file

Running the database

  • To create DB; docker-compose run --rm web rake db:create.
  • To migrate DB; docker-compose run --rm web rake db:migrate.

One-off run to create app

  • Run, heroku apps:create docloader.
  • Run this to add postgresql addon on Heroku heroku addons:create heroku-postgresql:hobby-dev.
  • To create DB run, heroku run --app docloader rake db:create.

Acknowledgements

Author

Sylvance Kerandi.

docloader's People

Contributors

sylvance avatar

Watchers

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.