This is a short documentation on how to set up the project on your local machine
- Database: MongoDB
- Stack: Golang
- Download/Clone the repository into your working directory
- Create a
.env
file and follow or copy the contents ofenv.example
into your.env
file to set up your environment variables - Open the
main.go
file and change thelog.Fatal(http.ListenAndServe(":80", router))
tolog.Fatal(http.ListenAndServe(":8080", router))
- on the root directory Run
go run main.go
orgo run .
to start your server (ensure you have completed setting up your enviroment variables) - Open your browser and type in your project host and port number E.g
localhost:8080
. - Login using the testuser account you created on your mongoDB test cluser.