Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

IndraSty/GreenBasket

Repository files navigation

GreenBasket API

GreenBasket is an E-commerce application Backend Service specifically for farmers to sell their crops directly to customers. Products sold are fresh vegetables, fruits, eggs, meat, fish and various kitchen spices. This backend service is built using a monolithic architecture, all service components are integrated in one cohesive codebase, making it easy to develop and maintain and deployment is faster and simpler because it involves only one artifact or build that needs to be managed.

This API is open source, so you can use it for the backend needs of your E-commerce project that you have customized.

API Installation

Required

To run the API on your local machine, make sure these items are installed on your computer:

The other items that You need to setup are:

Steps

To run the API on your local machine, make sure You follow these steps:

Clone the Repository

git clone https://github.com/IndraSty/GreenBasket.git

cd GreenBasket

Initialize Go module and download dependencies:

go mod init GreenBasket
go mod download

Start up a docker container running MongoDB and Redis. A docker-compose file is provided to make this easier.Make sure you are in the same root folder as docker-compose is located.

docker compose up

Create an .env file and fill it according to the .env.example file which has been completed according to the required items explained previously.

Import data from the /data folder to your database. We recommend using a GUI like MongoDB Compas to make this easier.

Run the API on Your local machine

go run cmd/server/main.go

To build the source code running

go build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors