This sample is is a web-based task manager designed to help users manage their tasks efficiently. It allows users to add, delete, and view tasks in a simple and intuitive interface. This application is ideal for anyone looking to enhance their productivity by keeping track of their daily activities. There is a go.mod file that includes dependencies for the Dockerfile to install
Create Tasks: Users can add new tasks with descriptions. Delete Tasks: Users can remove tasks when they are completed or no longer needed. View Tasks: Users can view a list of their current tasks.
Backend: The application is built with Go (Golang), utilizing the powerful net/http standard library for handling HTTP requests and responses. Database: MongoDB is used for storing tasks. It is a NoSQL database that offers high performance, high availability, and easy scalability. Frontend: Basic HTML and JavaScript are used for the frontend to interact with the backend via API calls. Environment: Designed to run in containerized environments using Docker, which ensures consistency across different development and production environments.
- Download Defang CLI
- If you are using Defang BYOC, make sure you have properly authenticated your AWS account Plus, make sure that you have properly set all environment variables up
- There is a environment variable named MONGO_URI for the MONGODB connection string, in the compose file, be sure to put your mongodb URI, i.e. mongodb+srv://:@host
- Open the terminal and type
defang login - Type
defang compose upin the CLI - Your app should be up and running with Defang in minutes!
Title: Go & MongoDB Atlas
Short Description: A simple Go application that manages tasks with MongoDB Atlas.
Tags: Go, MongoDB, Atlas, Task Manager
Languages: golang
