A simple RESTful API for managing tasks with user authentication. Built with Ruby on Rails.
User registration and login with JWT-based authentication.
Create, read, update, and delete tasks.
Tasks are associated with users.
Pagination for listing tasks.
Validation for task fields (title, status, due_date).
Error handling with meaningful messages.
Ruby 3.3.4
Rails 8.0.0
SQLite
Bundler
cd task-manager-api
Install the required gems:
bundle install
Create the database:
rails db:create
Run migrations:
rails db:migrate
Generate the credentials.yml.enc file:
rails credentials:edit
Add the secret_key_base for JWT token generation:
secret_key_base: YOUR_SECRET_KEY_BASE
Run the Rails server:
rails s