Skip to content

vinicius-vph/task-list-with-rails

Repository files navigation

This is a TO-DO list with Rails.


For run this project is necessary to have:

Language/Interpreter Version
Ruby 3.0.0
Rails 6.1.3
Database Version
Postgres 13


After the step above, in your terminal run this commands


Clone the project

git@github.com:vinicius-vph/task-list-with-rails.git

Access the project directory

cd task-list-with-rails

Install ruby and rails dependencies

bundle install

Install js dependencies

yarn install

Create or run database

  • If you have docker in your pc and want create a new container with postgres image exclusive for this project, run this command
docker run --name teste-postgres -e POSTGRES_USER=test -e POSTGRES_PASSWORD=test -p 5432:5432 -d postgres

Create tables in database

rails db:migrate

Credentials of the project

  • configure the user and password for CRUD the application
# delete the file config/credentials.yml.enc
rm config/credentials.yml.enc

# run the command for create credentials e master key files using VS Code (if you use another editor change 'code' for he)
EDITOR="code --wait" bin/rails credentials:edit
  • in your editor create the fields below using your personal datas on your_name and your_password
authenticate:
  name: your_name
  password: your_password
  • Save and close the file config/credentials.yml.enc.

Run the project local

rails s

Open in your browser the address http://localhost:3000
For see in production https://vini-rails-task-list.herokuapp.com/

About

This is a TO-DO list with Rails.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published