This is the backend component of a task management application built with Ruby and Sinatra. The backend provides a RESTful API for creating, reading, updating, and deleting tasks, and also handles user authentication and session management. The application uses an sqlite3 database to store data.
To run the backend component of the application, you will need to have Ruby (version 2.6 or later) and sqlite3 installed on your system. You can then follow these steps:
- Clone the repository to your local machine.
- Navigate to the backend directory.
- Install the required gems by running bundle install.
- Create an sqlite3 database by running rake db:create.
- Run the database migrations by running rake db:migrate.
- Optionally, you can populate the database with some initial data by running ruby seeds.rb.
- Start the backend server by running ruby app.rb.
- The backend server should now be running on http://localhost:9292.
The backend provides GET, POST, PATCH and DELETE API endpoints: