This repository contains two projects:
- frontend/: React 19 + Vite application
- backend/: Ruby on Rails 7.2 API-only application (Ruby 3.2)
All services run in Docker using docker-compose.
- Build and start all services:
make build- Access the apps:
- Frontend: http://localhost:5173
- Backend (Rails API): http://localhost:3000
- Database
- Postgres runs in the
dbservice. - Default credentials (see
docker-compose.yml):- Host:
db - Username:
postgres - Password:
postgres - Database:
aceup_db
- Host:
- First-time Rails setup (run in another terminal):
make db.init-
Rebuild images after dependency changes:
make build
-
Start the services:
make start
-
Stop all services:
make stop
-
Go into rails console:
make rails.c
-
Go into bash console:
make sh
-
Run migrations:
make db.migrate
Following the MVCS pattern (Model, View, Controller, Service), create a very simple order management system.
Frontend
- Create a Dashboard with at least 1 stat (# of orders created)
- Create an order table | New Order button | New Order dialog
- Refresh orders after new is created
Backend
- Orders crud
- Send an email after order is created