Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 2.71 KB

README.md

File metadata and controls

56 lines (44 loc) · 2.71 KB

Go

Golang Template Web Application

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.

Project Guide

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 GitHub. You can find the wiki here.

Table of Content

  1. How to set up and use PostgreSQL
  2. How to use Git and GitHub
  3. How to set up the project
  4. How to run the server
  5. Technologies
  6. License
  7. Demo

What's needed to run the server

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).

How to run the server

  1. Run the following commands on your terminal to clone the repository and run the server:
git clone https://github.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)
  1. Open your browser and navigate to http://localhost:3000 (or any other port you specified in the .env file)
  2. You should see the front page template of the web app (see the demo section below)

Technologies

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Demo

Golang Web App Homepage Golang Web App Login Page Golang Web App Register Page Golang Web App Dashboard Page