API Gateway with a built-in Auth Server
- Rate Limit
- Cache (WIP)
- Monitoring (WIP)
- Applications Dashboard
- Yaml Config File
-
Register to Github.com.
-
Install Git
sudo apt-get install git
-
Configure Git
git config --global user.name "Your Name Here" git config --global user.email "[email protected]"
-
Generate Public Key
ssh-keygen # then, just press enter
-
cat ~/.ssh/id_rsa.pub # copy the content to github
Add the following lines to /etc/hosts
:
127.0.0.1 iredium.local
127.0.0.1 www.iredium.local
127.0.0.1 accounts.iredium.local
127.0.0.1 api.iredium.local
-
Clone Tanhua
git clone [email protected]:iredium-technologies/tanhua.git cd tanhua
-
Install Dependencies
yarn
-
Copy
env
filecp env-sample .env
Then make any changes if required.
-
Copy config file
cp apis.yml-sample apis.yml
-
Run
yarn dev
-
Access it at
http://api.iredium.local:3039
-
GET
/users/login
: Login page -
GET
/users/register
: Register page -
GET
/oauth/applications
: Oauth2 applications dashboard -
GET
/oauth/authorize
: Authorization Code flow code issuer -
POST
/oauth/token
: Credential issuer