/Dietify

Diet Tracker

Primary LanguageRuby

Dietify Backend

Dietify - Calorie counting for weight management shouldn't be hard. Dietify helps you to keep track of your calorie intake. This is the api backend for the Dietify application. Click here to see the frontend project.

Live Demo Link

You can use this link to access the demo version of this app.

Built With

  • Ruby 3.0.2
  • Rails 6.1.4
  • JWT Gem 1.5
  • Postgresql

ERD

The relationship between models can be seen in the ERD diagram below.

Screenshot

Prerequisites

  • Ruby >=3.0.2
  • Rails >=6.1.4
  • Postgresql >10

Setup

In order to run this app on your local environment:

  • Clone the project on your local machine with the following command.
git clone git@github.com:sinansevgi/dietify.git
  • Navigate to the project directory
  • Run the following command to install dependencies
bundle install 
  • You should create required databases and tables before running the application.
  • Run the following command to create databases and tables
rails db:create 
rails db:migrate
  • If you want to load demo data to test the application, you can use the following command to seed a database with demo data
rails db:seed
  • You can run the API server with the following command
rails s

Authors

👤 Sinan Sevgi

Contributing 🤝

Contributions, issues, and feature requests are welcome!

Support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.