GithubHelp home page GithubHelp logo

nassim795 / todo-backend Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17 KB

This is a simple Todo-List application backend built with Spring Boot.

Dockerfile 1.17% Java 98.83%
api rest rest-api spring spring-boot todo todoapp restful-api

todo-backend's Introduction

Todo-List Backend

This is a simple Todo-List application backend built with Spring Boot. The backend provides RESTful APIs to manage todo items.

Features

  • Create, read, update, and delete (CRUD) todo items
  • Uses Spring Boot for backend framework
  • Integrates with MySQL database

Prerequisites

  • Java 17
  • Maven
  • MySQL

Getting Started

Clone the Repository

git clone https://github.com/Nassim795/todo-backend.git
cd todo-backend

Configuration

  1. Create a MySQL database named todo_db.
  2. Update the src/main/resources/application.properties file with your MySQL database credentials:
spring.datasource.url=jdbc:mysql://localhost:3306/todo_db
spring.datasource.username=your_mysql_username
spring.datasource.password=your_mysql_password
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true

Build and Run the Application

The application will start and be accessible at http://localhost:8080/api/todos

API Endpoints

Method Endpoint Description
GET /api/todos Retrieve all todos
POST /api/todos Create a new todo
GET /api/todos/{id} Retrieve a todo by ID
PUT /api/todos/{id} Update a todo by ID
DELETE /api/todos/{id} Delete a todo by ID

Example Request:

To create a new todo, send a POST request to http://localhost:8080/api/todos with the following JSON body:

{
  "title": "Learn Spring Boot",
  "description": "Build a simple Todo application",
  "completed": false
}

todo-backend's People

Contributors

nassim795 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.