This is a simple OAuth example using Java Web Token
- Node.js installed on your machine.
- Version >= 18.13.0
-
Install dependencies for each component:
cd oauth-jwt-node npm install -
Create a
.envfile based on.env.templateand fill in the necessary environment variables.
-
Run the authentication server:
npm run start:auth-server:watch
The authentication server should now be running on http://localhost:8081.
-
Run the service:
npm run start:service:watch
The service server should now be running on http://localhost:8080.
-
Run the client:
npm run client
The client will interact with the authentication server and service.
-
Run the tests:
npm run test