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:
- Clone this repository to your local machine.
- Download and install Golang, ensuring it is properly configured.
- Download and install PostgreSQL for your respective operating system.
- Set up your PostgreSQL database, making any necessary changes to the environment secrets in the “.env” file.
- Ensure you have the “make” utility installed on your machine.
To start the Go server and the React frontend, you have two options:
Running Locally: Use the following command to start the server and frontend:
make run-localThis command will start the server on port 8081 and the UI on port 3000.
Using Docker: Ensure you have Docker installed on your machine, then use the following command to start the server and frontend:
make run-dockerThis 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.