Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mohammadshaad/golang-todo-apis
https://github.com/mohammadshaad/golang-todo-apis
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mohammadshaad/golang-todo-apis
- Owner: mohammadshaad
- Created: 2023-08-24T14:53:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-18T10:30:43.000Z (over 1 year ago)
- Last Synced: 2024-06-20T20:47:26.962Z (7 months ago)
- Language: Go
- Size: 6.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Todo App
This is a simple web-based todo application built with Go (Golang) and Fiber. It allows you to create, update, and delete todo items.
## Table of Contents
- [Features](#features)
- [Requirements](#requirements)
- [Getting Started](#getting-started)
- [Usage](#usage)
- [Contributing](#contributing)## Features
- Create new todo items.
- Update existing todo items.
- Delete todo items.
- Simple and clean web interface.
- Uses a PostgreSQL database to store todo items.## Requirements
Before you begin, ensure you have met the following requirements:
- Go (Golang) installed on your local machine.
- PostgreSQL database server installed and running.
- Dependencies managed using Go Modules.## Getting Started
1. Clone this repository:
```bash
git clone https://github.com/mohammadshaad/golang-todo-app.git
```Change to the project directory:
```bash
cd golang-todo-app
```Install project dependencies:
```bash
go mod tidy
```Set up the PostgreSQL database. Create a database named todos and configure the database connection in the server.go file.
Run the application:
```bash
go run server.go
```Access the application in your web browser at http://localhost:8080 (or the specified port).
## Usage
Visit the application in your web browser.
Add new todo items using the input field and "Add" button.
Edit existing todo items by clicking the edit button.
Delete todo items by clicking the delete button.
Enjoy organizing your todos!## Contributing
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:Fork the project.
Create your feature branch:
```bash
git checkout -b feature/your-feature-name
```Commit your changes:
```bash
git commit -m 'Add some feature'
```Push to the branch:
```bash
git push origin feature/your-feature-name
```Submit a pull request.