GithubHelp home page GithubHelp logo

a10003202 / rails-import-challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.38 MB

Rails import excel challenge

Dockerfile 0.57% Ruby 51.14% JavaScript 25.83% CoffeeScript 0.21% SCSS 2.74% CSS 0.64% HTML 18.87%

rails-import-challenge's Introduction

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

    • 2.5.1
  • System dependencies

    • MySql 8.0.25

Install

Clone the repository

git clone [email protected]:a10003202/rails-import-challenge.git
cd rails-import-challenge

Note: If you use Docker Compose you must follow next steps:

  • Build image with: docker-compose build
  • Change database.yml host to db
  • Start container with: docker-compose up
  • Follow steps starting from Database creation prepending to the commands 'docker-compose run --rm webapp'. Example: docker-compose run --rm webapp rake db:create

Check your Ruby version

ruby -v

The output should start with something like ruby 2.5.1

If not, install the right ruby version using rbenv (it could take a while):

rbenv install 2.5.1

Install dependencies

Using Bundler and Yarn:

bundle && yarn

Database creation

  rake db:create

Database initialization

  rake db:migrate
  rake db:seed

Compile assets

  rake assets:precompile

Add heroku remotes

Using Heroku CLI:

heroku git:remote -a rails-import-challenge
heroku git:remote --remote heroku-staging -a rails-import-challenge-staging

Serve

rails s

Login

Open in browser http://localhost:3000/login if running the project locally or http://your-domain.com/login for production environments. You can login with the default admin user credentials:

  email: [email protected]
  password: admin

Run tests

  rails test

Deployment instructions

With Heroku pipeline (recommended)

Push to Heroku staging remote:

git push heroku-staging

Go to the Heroku Dashboard and promote the app to production or use Heroku CLI:

heroku pipelines:promote -a rails-import-challenge-staging

Directly to production (not recommended)

Push to Heroku production remote:

git push heroku

rails-import-challenge's People

Watchers

 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.