Skip to content

ChrisWhite12/clientPortalApp_BE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clientPortalApp_BE

To setup the app for development, the env variables have to be declared in the .env file in the main directory.

TEST_EMAIL = '(login for etheral email)'
TEST_PASS = '(password from etheral email)'
API_KEY = '(API key that you generate from clinoko)'

To generate the API keys login to cliniko. Click in My Info tab and click Manage API keys.

cliniko1

From there click Add an API key.

cliniko2

In the fetch requests in api_controller change the User-Agent to your name and email that you use for cliniko.

headers: {
Accept: "application/json",
'Content-Type': 'application/json',
Authorization: `Basic ${Base64.encode(process.env.API_KEY)}`,
"User-Agent": "Chris White ([email protected])",
}

etheral email: https://ethereal.email/

cliniko: https://coderacademyassessment.au2.cliniko.com/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors