Categorygithub.com/squishedfox/webservice-prototype
modulepackage
0.0.0-20240828013341-1e3af704cd1b
Repository: https://github.com/squishedfox/webservice-prototype.git
Documentation: pkg.go.dev

# README

webservice-prototype

A prototype building out with GraphQL, Golang, and MongoDB

Setup

Go work

go 1.22.5

use (
    .
    ./db
    ./db/mongodb
    ./models
    ./web
)

.env file

MONGO_SERVER=mongodb://root:[email protected]:27017/

Running

From the root of the application...

  1. Start Docker mongo database instance, and mongo express instance
docker compose up -d
  1. Make sure to install all dependencies
go get
  1. Start the main application
go run main.go
  1. test the application is up and healthy
curl http://localhost:8080/

should output

{ "status": "ok" }