The Javascript plugin uses the express.js framework.
You have to set your ESP parameter on the .env file:
- host: the ESP domain uri
- environmentName: the ESP environment value
- final: The user session redirect uri (Important! You have to contact the ESP team for a custom final uri )
- apiKey: The api key useful for Backend Authentication
- attributes: The getKey attributes parameter
- level: The getKey level parameter
- spidType: The getKey spidType parameter
HOST=INSERT HOST PARAMETER
ENVIRONMENT_NAME=INSERT ENVIRONMENT NAME PARAMETER
FINAL=http://localhost:3000/user
API_KEY=INSERT APIKEY PARAMETER
ATTRIBUTES=Base
LEVEL=1
SPID_TYPE=
You can use the standard JAVASCRIPT run program
npm run dev
There is a second possibility, the plugin can run on Docker You can use the docker-compose command to run the plugin
docker compose up esp-javascript