- Setup: Ensure you have Go installed on your system. Clone the repository from GitHub.
git clone https://github.com/SamuelMolling/todo-list-golang.git
cd todo-list-golang
- MongoDB Configuration: Set up your cluster and configure your connection string on line 32.
mongoURI := "mongodb+srv://<USERNAME>:<PASSWORD>@<CLUTER_ENDPOINT>/?retryWrites=true&w=majority&appName=demo1"
- Run the Application: Execute the following command to start the server.
go run main.go
- Access the Application: Open your browser and navigate to
http://localhost:8080
to interact with the Todo List application.