A complete fullstack application using Go (Golang) for the backend and React (with TypeScript) for the frontend, featuring MongoDB, TanStack Query, ChakraUI, and more.
- Backend: Go (Golang)
- Frontend: React (TypeScript)
- Database: MongoDB
- State Management: TanStack Query
- UI Framework: ChakraUI
- Light & Dark Mode: ChakraUI color mode toggle
- Real-Time Data Fetching: TanStack Query (formerly React Query)
- Responsiveness: Fully responsive design for mobile, tablet, and desktop
- Deployment: Easy deployment to production
- ✅ Create, Read, Update, Delete (CRUD) functionality for todos
- 🌙 Light and Dark mode for user interface
- 📱 Responsive design for various screen sizes
- 🔄 Real-time data fetching, caching, and updates with TanStack Query
- 🎨 Stylish UI components using ChakraUI
To get this app up and running locally, follow the steps below.
git clone <your-repository-url>
cd <project-directory>Create a .env file at the root of the project (same level as main.go), and add the following:
MONGO_URI=<your_mongo_uri>
PORT=5000
ENV=developmentFor the backend (Go):
- Install Go dependencies:
go mod tidy
go run main.go
For the frontend (React):
- Install the React dependencies:
cd client
npm install
npm run dev
- Dockerize Backend:
- Create a Dockerfile for the Go app.
- Build and run the Go container with:
docker build -t go-backend .
docker run -p 5000:5000 go-backend- Dockerize Frontend:
- Create a Dockerfile for the React app.
- Build and run the React container with:
docker build -t react-frontend .
docker run -p 5173:5173 react-frontend