A simple to-do list application built with React, MySQL, and Node.js. This application allows you to create and manage to-do items.
- Create new to-do items.
- Delete existing to-do items.
- View a list of all to-do items.
- Store to-do items in a MySQL database.
Follow these instructions to get the project up and running on your local machine.
Before you begin, make sure you have the following tools installed:
- Node.js
- MySQL Server
-
Clone the repository:
git clone https://github.com/yourusername/your-repo.git
-
Navigate to the project directory::
cd your-repo
-
Install the dependencies for the server:
cd server npm install
-
Configure the MySQL database:
- Create a new MySQL database for the project.
- Update the config.js file in the server directory with your MySQL database connection details.
-
Migrate the database schema:
npm run db:migrate
-
Install the dependencies for the client::
cd ../client npm install
-
Start the server:
cd ../server npm start
-
Start the react client:
cd ../client npm start
-
Open your web browser and navigate to http://localhost:3000 to access the to-do list application.
- POST /notes/create: Create a new to-do item.
- GET /notes: Get a list of all to-do items.
- DELETE /notes/:id: Delete a to-do item by ID.
- id (Primary Key)
- title (String)
- contents (String)
- created (Timestamp)
- Contributions are welcome! Please feel free to open an issue or submit a pull request.
- This project is licensed under the MIT License.