Web Services for Expense Tracker App
# Install
yarn install
# Run Expense Server (On Port 5000)
npm run expense-server
# Run OAuth Server (On Port 9000)
npm run oauth-server
# Run Expense Server with OAuth Secutiry Enabled
npm run expense-server-with-oauth
# Registering a user
# POST with application/x-www-form-urlencoded encoding
POST to http://localhost:9000/register with {"username":"tom", "password":"jerry"}
# Log In
# POST with application/x-www-form-urlencoded encoding
# grant_type=password, client_id & client_secret can be random strings
POST to http://localhost:9000/login with username, password, grant_type, client_id, client_secret
# Verify token
# Ex: Authorization: Bearer d105b24fce14e48e6466aeab4be7378d86b6359f
GET to http://localhost:9000/check with access token in header
curl -H "Authorization: Bearer $ACCESS_TOKEN" http://localhost:9000/check