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.0
-
Rails version 5.2.0
-
Table Schema
- Model User
email:string, password_digest:string, name:string, role:integer
- Model Task
title:string, description:string, deadline:datetime, priority:integer, state:integer, user_id:integer
- Model Tagging
tag_id:integer, task_id:integer
- Model Tag
name:string
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
Before deployment,please install following tools:
Heroku CLI : https://devcenter.heroku.com/articles/heroku-cli#download-and-install
Git : https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
Deploy to Heroku
- Download this project to your local repo
- Open your project
$ cd "your project location"
- Login with Heroku account and create new App
$ heroku login
$ heroku create
- Deploy this app with Heroku CLI commands
$ git push heroku master
- Initial db
$ heroku run rails db:migrate
- Create User
$ heroku run rails console
$ User.create(email: "your emrail", password: "your password")
$ exit
- Open your app with Heroku CLI commands
$ heroku open
- Login with User and enjoy the app!
