Ensure you have the following installed:
- Ruby 3.2
- PostgreSQL (configured to allow local connections without a password)
- Install necessary gems:
bundle install
- Prepare the database:
rails db:prepare
- Seed the database:
rails db:seed
Start the Rails server:
rails s
To test the application manually:
-
Open your browser and navigate to: http://localhost:3000
-
Use the following credentials to log in: Email:
[email protected]
OR[email protected]
Password:password
-
Interact with the app:
- Select any project and add comments as needed.
- As the project owner, you can also modify the project status:
- Note: If you mark the project as "cancelled" or "completed", it cannot be reverted.
-
To observe real-time updates:
- Open two separate browsers or use an incognito window to log in as both users simultaneously.
The tests are built using RSpec. Run them with:
rspec
-
Build & run the Docker containers:
docker compose up
-
Setup the database:
docker compose exec web rails db:prepare db:seed
-
Start the application:
docker compose up
The application will be accessible at: http://localhost:3000