Backend for https://github.com/Girchi/ged-transfer
-
Make local instance of the project:
git clone git@github.com:Girchi/girchi-payments-connect.git; cd girchi-payments-connect
-
Create
.env
file in the project's root directory(wherepackage.json
is) and useexample.env
as a templateA. Create
/cert
directory also in the root directoryB. Generate SSL key and certificate in the
/cert
folder(.gitignore
will automatically ignore it)C. Insert client_id and client_secret in
.env
from Drupal's Ouath moduleD. To set up a localhost environment, put in your SSL key(for example:
SSL_KEY=./cert/example.key
)E. Change
"DRUPAL_DOMAIN"
in.env
to 'http://girchi.docker.localhost' -
It's essential to have configured JSON:API, Simple Oauth and Token in Drupal side
-
Run
npm i
in terminal to automatically install all the neccessary npm packages -
Run
npm run dev
to start the app