GOPATH=$PWD/bin
- ensures all downloaded packages are present within this project folder.
GOROOT=go/installed/dir
go build
will create a new file that's named after the module go-festility.
go run .
# OR
go run <package-name>
which should start the server
Run the following in the root dir of the project
# BUILD THE IMAGE docker build -t festility . # RUN THE CONTAINER docker run --rm -it -p 8080:8080 festility # RUN WITH DOCKER COMPOSE docker-compose up --build
You're welcome, future me.
- https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/go-buildfile.html
- https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/java-se-procfile.html
- https://www.youtube.com/watch?v=5GINgmS93Mc
docker run -d -p 27017:27017 mongo
Connect & interact with the database through the terminal by the command
docker exec -it <container_name> mongosh