This is a simple shopping project built with Go. It is designed to manage food menus, orders, and invoices using a MongoDB database and the Gin web framework.
- Manage food items
- Manage menus
- Handle orders
- Generate invoices
- User authentication
- Go: The main programming language used for this project.
- Gin: A web framework for building APIs.
- MongoDB: A NoSQL database for storing data.
- Go 1.22.11 or later
- MongoDB
-
Clone the repository:
git clone https://github.com/yourusername/go-shopping-project.git cd go-shopping-project
-
Install dependencies:
go mod tidy
-
Set up MongoDB:
- Ensure MongoDB is running on
mongodb://127.0.0.1:27017/rest
.
- Ensure MongoDB is running on
-
Start the application:
go run main.go
-
The application will run on port
8001
by default. You can access it athttp://localhost:8001
.
This project is licensed under the MIT License.