An open API service indexing awesome lists of open source software.

https://github.com/hoyirul/go-starter-echo

This is a simple project to demonstrate how to use Echo Framework in Golang with PostgreSQL as the database
https://github.com/hoyirul/go-starter-echo

echo-framework golang gorm posgresql restful-api

Last synced: 7 months ago
JSON representation

This is a simple project to demonstrate how to use Echo Framework in Golang with PostgreSQL as the database

Awesome Lists containing this project

README

          

# Golang with Echo Framework and PostgreSQL

## Description
This is a simple project to demonstrate how to use Echo Framework in Golang with PostgreSQL as the database. This project is a simple CRUD application that allows you to create, read, update, and delete users.

## How to run
1. Clone this repository
2. Run the following command:
```bash
go run main.go
```
3. Open your browser and go to `http://localhost:8080`

## Endpoints
- GET `/`: Home page
- GET `/users`: Get all users
- GET `/users/:id`: Get user by ID
- POST `/users`: Create a new user
- PUT `/users/:id`: Update user by ID
- DELETE `/users/:id`: Delete user by ID

## Author
- [Mochammad Hairullah](https://github.com/hoyirul)

## License
This project is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

## Acknowledgements
- [Echo Framework](https://echo.labstack.com/)
- [Golang](https://golang.org/)
- [GORM](https://gorm.io/)

## Contact
- [LinkedIn](https://www.linkedin.com/in/madhai/)
- [Twitter](https://twitter.com/hoyirul_)
- [Instagram](https://www.instagram.com/hoyirul_/)

## Support
If you find this project useful, please consider giving a star :star: to this repository.

## Contributing
If you want to contribute to this project, feel free to fork this repository and create a pull request.

## Changelog
- 1.0.0: Initial release

## Roadmap
- Add more features
- Add more endpoints
- Add more tests
- Add more documentation