A simple Backend Todo application built with Go, using Gin and GORM. Frontend with Svelte.
Testing site: http://103-195-4-64.cloud-xip.com/
Websocket is not working now (no tls)
- CRUD for Todo items
- MySQL database
- Dockerized deployment
- Github CI
- Calendar view
- Todo list sorting, filtering, search
- User management by admin
- Assignee of task
- Websocket notification on task updates
- Docker
- Docker Compose
- Git
- Golang
- Svelte
- Clone the repository
- Create
.envfile in the project root
DB_USER=todouser
DB_PASS=todopassword
DB_NAME=tododb
DB_ROOT_PASSWORD=rootpassword
BACKEND_PORT=8080
BACKEND_URL=http://localhost:8080
FRONTEND_PORT=3000
FRONTEND_URL=http://localhost:3000
PORT=8080
JWT_KEY=key
API_BASE_URL=http://localhost/api
VITE_API_BASE_URL=http://localhost/api
- Start/Stop the application using Docker Compose:
To Start
cd frontend
npm install
npm install -g rollup
npm run build
cd ..
docker compose --env-file .env up
To Stop
docker-compose down -v
Default the backend will crate an admin account now automatically
username: admin
password: admin123
API available at http://localhost:8080
GET /todos: List all todosGET /todos/:id: Get a specific todoPOST /todos: Create a new todoPUT /todos/:id: Update an existing todoDELETE /todos/:id: Delete a todo
POST to /todos:
{
"name": "project",
"description": "Finish the todo application",
"due_date": "2023-12-31T23:59:59Z",
"status": "pending"
}