go-postgres-jwt-react-starter

A go, gin, and postgres API with jwt auth, complete with a react frontend

Github stars Tracking Chart

GO-React starter

This is a boilerplate/starter for a go and react project.

It uses the go gin framework.

Getting started

Download and install golang

Download and install postgres

Usage

Clone this repository

Use the queries in the server/db/.psql file to setup the database.

Enter the DB creds in the server/config/ file

Navigate to the server directory

> cd server
> go run main.go

This will start the go server.

To start the react app navigate to the client directory

> cd client
> yarn install
> yarn start

Endpoints

  • /session [GET]

  • /register [POST]

       { name String,
         email String,
         password String
       }
  • /login [POST]
       { email String,
         password String
       }

Routes

  • /login

  • /register

  • /session

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Main metrics

Overview
Name With Owneraesrael/go-postgres-react-starter
Primary LanguageGo
Program languageGo (Language Count: 7)
Platform
License:
所有者活动
Created At2019-07-20 13:12:07
Pushed At2021-11-24 14:51:47
Last Commit At2021-11-24 14:51:47
Release Count2
Last Release Name1.0.0 (Posted on )
First Release Name0.1 (Posted on )
用户参与
Stargazers Count189
Watchers Count5
Fork Count46
Commits Count100
Has Issues Enabled
Issues Count4
Issue Open Count0
Pull Requests Count13
Pull Requests Open Count0
Pull Requests Close Count15
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private