A golang todo list application using MongoDB as its database and Vue.js for the frontend.
- Local golang installation
- Nodejs and npm
- MongoDB
Installing the dependencies:
go get github.com/gorilla/mux
go get go.mongodb.org/mongo-driver/bson
go get go.mongodb.org/mongo-driver/mongo
go get github.com/joho/godotenv
Running the application:
go run main.go
Installing the dependencies:
npm install
Running the application
npm run serve
The application can then be accessed using the browser on http://localhost:8080/.
The external IP is required for the website to access the API from other PCs. For that, I included a shell script that automatically gets your IP Address on Linux, or lets you add a custom one if you are on Windows.
Start the application
# Building the application using the external IP as an Argument
./build-docker.sh
# Running the application in Docker
docker-compose up