Welcome! This API provides various endpoints to retrieve recipes and learning resources. Users will have registration, login, and favorites related to different recipes.
- Build a JSON API using Ruby on Rails.
- Implement CRUD operations for various resources.
- Authenticate users and handle user sessions securely.
- Integrate with external APIs to fetch recipe and learning resource data.
- Practice error handling and validation.
- Utilize JSON serialization to structure API responses.
Endpoint: GET /api/v1/recipes
Endpoint: GET /api/v1/learning_resources
Endpoint: POST /api/v1/users
Endpoint: POST /api/v1/sessions
Endpoint: POST /api/v1/favorites
Endpoint: GET /api/v1/favorites
-
Clone this repository.
-
Run
bundle install
. -
Run
rails db:create
andrails db:migrate
. -
Run
bundle exec rspec
for test suite -
Obtain API keys from the required external services (EdamamAPI, YouTubeApi, UnsplashAPI).
-
Use Figaro to secure your Api keys. Follow the docs here Figaro Gem. Insert your keys in the file provided when you add this gem.