-
Change the CORS ORIGIN of the server environment to match the Composer domain
/Server/.env
CORS_ORIGIN=https://iteavisdom.org -
Start the database from the /server folder (requires docker)
yarn start-db -
Start the server from the same /server folder
yarn start -
Log in to roadmapper to fetch the required token
POST
http://localhost:5000/users/loginPOST request body should be:
{"email": "admin.person1@test.com","password": "test"} -
Fetch the token of the logged in user
POST
http://localhost:5000/users/mytokenReturns a token for authentication, for example:
71dd72c1-73b4-4b73-ae50-1edd3532820d
-
Add the fetched token to the microfront api
/src/api/api.tsxfor example:
const token = "71dd72c1-73b4-4b73-ae50-1edd3532820d";