Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 13 days 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 (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-25T08:04:21.000Z (over 3 years ago)
- Last Synced: 2024-11-05T14:12:09.221Z (2 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![Register new account](./backend/media/register_api.png)
### 2. Login API
POST: http://localhost:9010/loginLogin success:
![Login your account](./backend/media/login_user.png)Login Invalid Username:
![Login Invalid Username](./backend/media/invalid_username.png)Login Invalid Password:
![Login Invalid Password](./backend/media/invalid_pass_error.png)### 3. Profile API
GET: http://localhost:9010/profile**People also search:**
- open id with golang and mongodb
- open id
- golang
- mongodb
- reactjs