This is a simple Todo List application built using the PERN stack (PostgreSQL, Express, React, Node.js).
- Add, Edit, Update and Delete: Manage your tasks effortlessly.
- Mark as Complete/Incomplete: Keep track of your progress.
- Responsive Design: Enjoy a seamless experience across devices.
-
Frontend:
- React with React Router for navigation
- Axios for API requests
-
Backend:
- Node.js and Express.js for the server
- PostgreSQL as the database
- Sequelize ORM for handling database interactions
- Node.js installed on your machine
- PostgreSQL installed and running locally
-
Clone the repository:
git clone https://github.com/your-username/PERN-todolist.git
-
Navigate to the project directory:
cd PERN-todolist
-
Install dependencies:
# Backend dependencies cd server npm install # Frontend dependencies cd ../client npm install
-
Set up the database:
- Create a PostgreSQL database named
database
. - Configure the database connection in
server/config/config.json
.
- Create a PostgreSQL database named
-
Start the backend server:
# Backend server cd server npm start
-
Start the frontend:
# Frontend app cd client npm start
-
Access the app in your browser: Go to
http://localhost:3000
.
/client
: Contains React frontend code/server
: Holds Node.js backend code/server/config
: Database configuration files/server/models
: Sequelize models/server/routes
: Express route handlers/server/controllers
: Controllers for route handling/server/middleware
: Custom middleware
Feel free to contribute! Please open an issue for discussion or submit a pull request.
This project is licensed under the MIT License - see the LICENSE.md file for details.