This README would normally document whatever steps are necessary to get the application up and running.
This is a simple web application built with Ruby on Rails. It can be used for basic accounting and can be run using docker.
-
Ruby version This app uses Ruby 3.0.0
-
System dependencies Depends on Rails 6.1.4, Postgresql 9.3
-
Deployment instructions
You can run the application locally without using Docker if you have Ruby 3.0.0 installed. The other gems can be installed by running the following command:
bundle install
- Replace db with localhost as the host value in database.yml
- Run
rails s
to run the application - Then point your browswer to http://localhost:3000 to view app
This is the preferred way to run the application. Run the commands below in the following order:
docker-compose build
docker-compose run web rails db:setup
to create development and test databases and seed development database. Alternatively you could: rundocker-compose run web rails db:create
to create the development and test databases and then rundocker-compose run web rails db:seed
to seed the development database with sample datadocker-compose run web rails db:migrate
to run migrationsdocker-compose run web rails s
to start the web server(puma)- Point your browser to http://localhost:3000
- ...