This project setup script allows you to quickly create a full-stack application with React (frontend),TailwindCss(style), Go (backend), MongoDB (database), and Fiber (Go web framework). It initializes the project folder structure, sets up the backend with Go and MongoDB, and creates the frontend with React, Vite, and Tailwind CSS.
Make sure you have the following installed on your system:
-
Node.js (with
npm
): Install Node.js - Go: Install Go
- MongoDB: Install MongoDB
To use the setup script, run the following command:
npm install -g cli-react-go-mongo-fiber
Run the CLI to create a new project:
create-my-project
Project Structure After running the CLI, the following project structure will be created:
<your-project-name>/
├── backend/
│ ├── config/
│ ├── controllers/
│ ├── models/
│ ├── routes/
│ └── main.go
├── frontend/
├── public/
└── src/
├── App.jsx
├── index.css
├── main.jsx
└── tailwind.config.js