This is the backend repo for the full stack project - Tasks-Tracker-React.
- This app lets users track the number of hours spent on a set of pre-determined daily routine.
- The user can log in by entering their name and password
- Users can add individual measurements for each kind of task.
- Users can view past records and go deep into details for each one.
- 🔗 End Point
- 🔗 Sign up to get a token
- 🔗 Login to get a token if you have an account
- 🔗 POST, GET on this endpoint
- Ruby 2.7
- Rails 6.1.1
- Postgresql
To get a local copy up and running follow these simple steps.
In order for Tasks-Tracker-API to work locally on your machine, you need these installations:
- Ruby
- Postgres database engine
- Open the Terminal
- Run
git clone https://github.com/belsman/Tasks-Tracker-API.gitor, for SSH:
git clone [email protected]:belsman/Tasks-Tracker-API.git- Run
cd Tasks-Tracker-APIto enter the main directory - Run
bundle install - Run
yarn install - Create database and run migrations with these command:
rails db:createrails db:migrate
- Start up the local server with
rails s -p 9000 - Visit
http://127.0.0.1:9000/signupto uptain an auth token - Navigate the routes by visiting the following routes with the auth token embedded in Authorization header
POST: /measurementsGET: /measurements
- Open the terminal
- Run
cd Rails-Capstoneto enter main directory - Migrate the test database:
rails db:migrate RAILS_ENV=test - Run
rake spec
👤 Bello Babakolo
- Github: @belsman
- Twitter: @d_belsman
- Linkdin: Bello Babakolo
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse for showing the way for this project to happen
- Gregoire Vella on Behance
- This Awesome toturial