This is the backend to track day app.
A project made to practice all core concepts of building APIs, such as having endpoints, authorization with tokens and tests
A full-featured API.
https://trackday-api.herokuapp.com/api/v1/
-
Create an account and receive a token
/users
POST, params: username, password -
Log in and receive a token
/sessions
POST, params: username, password -
Retrieve all measures (Categories like)
/measures
GET, no token required -
Create new measurement
/measurements
POST, params: value, measure_id
Header: Authorization Token
- Draw schema
- Auth with JWT Tokens
- Handle CORs
- Encrypt password
- Deploy
You will need to install:
-
Ruby Language - Version 2.6 - Install guide
-
Ruby on Rails - Version 5.2 - Install guide
Get a local copy, if you are using Git:
git clone git@github.com:SevlaMare/TrackDayAPI.git
Otherwise just hit (Download Zip) on the green button (Code) at top of this page.
Install all dependencies with:
bundle install
Setup database with:
rake db:schema:load
Populate the database with defaults using:
rails db:seed
rspec
rails server
Now is available on the browser
http://localhost:3000
- Middle table for fast queries
- Includes admin
- Ruby and Ruby On Rails
- Postgres
- Rspec
- ESlint and Rubocop (Linters)
- GitHub Actions (CI Tool)
- Heroku (Server and CD Tool)
- Git, Github and VScode
Contributions, issues and feature requests are welcome!
You can do it on issues page.
A special thanks to the code reviewers.
👤 Thiago Miranda
- Github: @SevlaMare
- Twitter: #SevlaMare
- Linkedin: SevlaMare