Skip to content

belsman/Tasks-Tracker-API

Repository files navigation

🕴️ Tasks-Tracker-API (backend) 🕴️

This is the backend repo for the full stack project - Tasks-Tracker-React.

Project Detail

  • 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.

Live demo

Built With

  • Ruby 2.7
  • Rails 6.1.1
  • Postgresql

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

In order for Tasks-Tracker-API to work locally on your machine, you need these installations:

  • Ruby
  • Postgres database engine

Install

  1. Open the Terminal
  2. Run
git clone https://github.com/belsman/Tasks-Tracker-API.git

or, for SSH:

git clone [email protected]:belsman/Tasks-Tracker-API.git
  1. Run cd Tasks-Tracker-API to enter the main directory
  2. Run bundle install
  3. Run yarn install
  4. Create database and run migrations with these command:
    • rails db:create
    • rails db:migrate
  5. Start up the local server with rails s -p 9000
  6. Visit http://127.0.0.1:9000/signup to uptain an auth token
  7. Navigate the routes by visiting the following routes with the auth token embedded in Authorization header
  • POST: /measurements
  • GET: /measurements

Run Rails-spec

  1. Open the terminal
  2. Run cd Rails-Capstone to enter main directory
  3. Migrate the test database: rails db:migrate RAILS_ENV=test
  4. Run rake spec

Author

👤 Bello Babakolo

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors