A simple web application built with Golang and PostgreSQL. The application is a simple CRUD application that allows users to create, read, update, and delete users from a PostgreSQL database. A simple frontend is also included in the project to demonstrate the functionality of the application.
This is a guide for the Golang template CRUD web application project. You will find different guidelines to help you set up the project, and the database, and how to use Git and . You can find the wiki here.
- How to set up and use PostgreSQL
- How to use Git and
- How to set up the project
- How to run the server
- Technologies
- License
- Demo
- Golang
- Make
- PostgreSQL
.env
file
In the root directory, create a new file named .env
.
Copy the content of .env.example
into your .env
file.
Replace the placeholders for the database connection with your own values (read the PostgreSQL setup guide for more information).
- Run the following commands on your terminal to clone the repository and run the server:
git clone https://.com/chrisdedman/Golang-Web-App.git
cd Golang-Web-App # Change directory to the project folder
make run # Run the server using Makefile script (required Make)
- Open your browser and navigate to
http://localhost:3000
(or any other port you specified in the.env
file) - You should see the front page template of the web app (see the demo section below)
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.