Harmony is a Discord-like Web Service.
For anyone who might have issues running the program
docker-compose run web bundle install
docker-compose build web
docker-compose run web rails db:migrate
docker-compose up
If you have merge conflicts in db/schema.rb
, follow this stackoverflow post.
If the db is in a bad state, to create a fresh database, follow this link
By default in User table, id=1 is guest
This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
docker-compose down --rmi all -v --remove-orphans
- In case you have issues with permissions, run the command:
sudo chown -R $USER:$USER tmp && sudo chmod -R u=rwx,g=rwx,o=rx tmp/db
docker-compose build web
docker-compose up --detach db
docker-compose run web rails db:create
docker-compose run web rails db:migrate
docker-compose run web rails db:seed
- If an error about
RAILS_ENV
not being set in schema pops up, run:docker-compose run web rails db:environment:set RAILS_ENV=development
docker-compose run web bundle install
docker-compose run web yarn install
docker-compose up
- Delete cookies for
localhost:3000
in your web and refresh!
app/db/seeds.rb will generate some random data to help evaluate the server performance
every time server starts it will automatically envoke seeds.rb, so no need to worry about it.
I extract channel Maximum number and message maximum number from the code, so that you can easily change the size of the generated data