Go Postgres React Starter

screenshot of Go Postgres React Starter
react

Go Postgres React Starter

A go, postgres API with basic jwt auth starter, complete with a react frontend

Overview

The GO-React Starter is a basic example of a Go web server with a React frontend. It utilizes the Go Fiber framework to build a web application. The purpose of this starter template is to provide developers with a starting point for developing web applications using Go and React.

Features

  • Go Fiber Framework: Utilizes the Go Fiber framework for building efficient and fast web applications.
  • React Frontend: Integrates a React frontend for creating dynamic and interactive user interfaces.
  • PostgreSQL Database: Provides support for working with a PostgreSQL database, allowing for data storage and retrieval.

Installation

To get started with the GO-React starter, follow these steps:

  1. Clone this repository to your local machine.
  2. Download and install Golang, ensuring it is properly configured.
  3. Download and install PostgreSQL for your respective operating system.
  4. Set up your PostgreSQL database, making any necessary changes to the environment secrets in the ".env" file.
  5. Ensure you have the "make" utility installed on your machine.

To start the Go server and the React frontend, you have two options:

  1. Running Locally: Use the following command to start the server and frontend:

    make run-local
    

    This command will start the server on port 8081 and the UI on port 3000.

  2. Using Docker: Ensure you have Docker installed on your machine, then use the following command to start the server and frontend:

    make run-docker
    

    This command will also start the server on port 8081 and the UI on port 3000.

Summary

The GO-React Starter is a simple and straightforward template for building web applications using Go and React. It provides the necessary components and setup to quickly get started with developing a web application. The integration of Go Fiber, React, and PostgreSQL allows for efficient and scalable development, providing developers with a solid foundation for building web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components