https://github.com/landofcoder/golang-open-id
Make Simple Open ID with Go Lang, Mongodb
https://github.com/landofcoder/golang-open-id
golang mongodb openid reactjs restful-api
Last synced: 3 months ago
JSON representation
Make Simple Open ID with Go Lang, Mongodb
- Host: GitHub
- URL: https://github.com/landofcoder/golang-open-id
- Owner: landofcoder
- Created: 2021-03-28T05:48:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-25T08:04:21.000Z (almost 4 years ago)
- Last Synced: 2025-02-15T01:43:54.135Z (5 months ago)
- Topics: golang, mongodb, openid, reactjs, restful-api
- Language: JavaScript
- Homepage: https://landofcoder.com
- Size: 3.38 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Golang Auth with Open ID - Demo
This application will show you how to build and secure a register, login account. You'll create an API with Go and a frontend with React that will consume your API. You'll secure your API using Auth0 so that only authenticated users can access other features.
## Install
- Setup golang latest version: https://golang.org/doc/install
- Setup Mongodb: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
- Run commands:
1. Backend:
``cd backend``
``go run main.go .``- The service will run at here: http://localhost:9010
2. Frontend:
``cd frontend``
``npm install``
``npm run start``- The service will run at here: http://localhost:3000
## DEMO API
### 1. Register new user API
POST: http://localhost:9010/register
### 2. Login API
POST: http://localhost:9010/loginLogin success:
Login Invalid Username:
Login Invalid Password:
### 3. Profile API
GET: http://localhost:9010/profile**People also search:**
- open id with golang and mongodb
- open id
- golang
- mongodb
- reactjs