Skip to content

RotrixLOL/go-react-crud

Repository files navigation

Simple CRUD with Go and React

I used some technologies:

  • Fiber (like express but for Go)
  • MongoDB Driver
  • Mongo Atlas for mongo server

Requirements:

  • Docker
  • Docker Compose
  • Golang

To start the app:

Manually

Download packages

go download

rename .env.example to .env and fill it change CORS origin in main.go line 52 to localhost or your domain if you need

Go to client dir and run

npm run build

Compile final bin with:

go build .

And finally run the bin!

With Docker

you also need to config CORS origin and .env file

docker-compose build
docker-compose up -d

and if you want to see logs you can do it:

docker-compose logs -f