A really simple Todo app implementing CRUD operations, made with React.js (using components from Chakra UI) and Golang with MongoDB as the backend. I built this project mainly to learn and practice how to create a backend API in Go with the net/http package and consume the API from a frontend.
- Go — Backend logic and REST API using
net/http
- MongoDB — NoSQL database for storing todos
- React — Frontend framework for building UI
- Chakra UI— Component library for modern UI design
- Axios — For making HTTP requests to the backend
- Add new todos
- Delete existing todos
- Mark todos as completed
- Save and load todos from MongoDB
- Toggle between Dark and Light modes
-
Clone the repository
-
Navigate to the backend directory
-
Create a
.env
file with your MongoDB URI -
Run the backend server:
go run main.go
-
Navigate to the frontend directory
-
Install dependencies:
npm install
-
Start the development server:
npm start