go-postgres-jwt-react-starter

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

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者aesrael/go-postgres-react-starter
主編程語言Go
編程語言Go (語言數: 7)
平台
許可證
所有者活动
創建於2019-07-20 13:12:07
推送於2021-11-24 14:51:47
最后一次提交2021-11-24 14:51:47
發布數2
最新版本名稱1.0.0 (發布於 )
第一版名稱0.1 (發布於 )
用户参与
星數189
關注者數5
派生數46
提交數100
已啟用問題?
問題數4
打開的問題數0
拉請求數13
打開的拉請求數0
關閉的拉請求數15
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?