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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?