A simple food tracking API written in Rails and using JWT Authentication
This API allows for a user to be created and makes calls to store meal entries if they are logged in so that they can keep track all their meals. The API is also extensively tested with basic unit tests and each request meant to be used by end user tested
- Rails 6.0.3.2,
- Ruby 2.7.1
- RSpec 3.9
To get a local copy up and running follow these simple example steps.
You will need to have a recent version of Ruby and Rails
run git clone https://github.com/mcrd25/food-tracking-api.git
run cd food-tracking-api
run bundle install
you may have to run yarn install --check-files
run rails db:migrate
or run rails db:setup
run rails db:seed
if rails db:setup
was not run
run rspec
or bundle exec rspec
to run tests
run rails s
or rails server
to run on development server
App deployed on heroku. Instructions
- Install Heroku CLI
- Login:
heroku login
- Create heroku app
heroku create
- Push to heroku master
git push heroku master
if you experience issues trygit push heroku +HEAD:master
- Migrate DB:
heroku run rails db:migrate
- Run seed files:
heroku run rails db:seed
- Open link:
heroku open
👤 Maya Douglas (mcrd25)
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- The authentication was heavily influenced by this tutorial
This project is MIT licensed.