# 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...
- Start Docker mongo database instance, and mongo express instance
docker compose up -d
- Make sure to install all dependencies
go get
- Start the main application
go run main.go
- test the application is up and healthy
curl http://localhost:8080/
should output
{ "status": "ok" }