docker-compose up --build -d
docker-compose exec be bin/rails db:seed
Backend
cd metrics_be
bundle install
rails db:create db:migrate
rails s
Frontend
cd metrics_fe
yarn install
yarn run dev -p 3001
cd metrics_be
rails db:seed
or from dump (recommended)
psql -U postgres -d metrics_development -f dev.dump
docker-compose exec be bin/rails db:seed
or from dump (recommended)
docker-compose cp dev.dump db:/dev.dump
Open http://localhost:3001
in your browser.
- User authentication
- User authorization
- Create, update, delete users
- GraphQL API
- List users
- List metrics
- Add new metrics
- Input validation
- Integer metrics
- Float metrics
- Boolean metrics
- String metrics
- Rename metrics
- Delete metrics
- Add new metric entry
- Display metric entries on chart
- Paginate through data in various chunk size
- Pull metric entries in data range
- Metric Entries aggregation (avg by minute, hour and day)
- Unit specs
- Integration specs
- Rubocop