Skip to content

mukulmantosh/Go_Food_Delivery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Food Delivery

Coverage Workflow

background

Prerequisites

Before starting up this project, make sure you have the necessary dependencies installed in your machine.

Installation

  • Go - Go is an open source programming language that makes it simple to build secure, scalable systems.

  • Docker - Docker helps developers bring their ideas to life by conquering the complexity of app development.

  • PostgreSQL - The World's Most Advanced Open Source Relational Database

  • NATS - NATS is an open-source messaging system. The NATS server is written in the Go programming language

Running Postgres Database

docker run --name food-delivery -p 5432:5432 -e POSTGRES_PASSWORD=****** -d postgres

Running NATS

docker network create nats
docker run --name nats -d --network nats --rm -p 4222:4222 -p 8222:8222 nats --http_port 8222 --cluster_name NATS --cluster nats://0.0.0.0:6222

Environment Variables

Be sure to place the .env file in the project root and update the information according to your settings. Refer to the example below.

APP_ENV=dev
DB_HOST=localhost
DB_USERNAME=postgres
DB_PASSWORD=*************
DB_NAME=food_delivery
DB_PORT=5432
STORAGE_TYPE=local
STORAGE_DIRECTORY=uploads
LOCAL_STORAGE_PATH=C:\Users\win10\GolandProjects\Go_Food_Delivery\uploads
UNSPLASH_API_KEY=*******************
JWT_SECRET_KEY=********************
PASSWORD_SALT=********************

External APIs

We are using UnSplash to generate images. So, you need to have an API key to work with the application.

Frontend (UI)

To configure the application's frontend UI, be sure to follow the instructions in this repository.

HTTP Client

We have covered the APIs which you can directly test out from the IDE.

httpclient

Get Set Go 🚀

Once you’re ready, clone this repo in GoLand, and you're good to go.

go_run_config