0.4.0 • Published 3 years ago
lnd-web-ho v0.4.0
lnd-web-management
Lesson Desk Head Office v2.0
Setup
Clone
Clone the project:
$ git clone git@github.com:lessondesk/lnd-web-management.git
As well as the submodules:
cd lnd-web-management
git submodule update --init --recursive
Install
Install the dependencies for lnd-web-management
& lnd-web-ui-lib
(Use npm and not yarn!):
$ npm install && cd lnd-web-ui-lib && npm install
Environment
At the root of your project add a .env
file with (assuming you want to point to staging environment):
NEXT_PUBLIC_API_SCHEME=https
NEXT_PUBLIC_API_HOST=api.uat.lessondesk.com
NEXT_PUBLIC_API_PORT=443
NEXT_PUBLIC_ENVIRONMENT=v2-lessondesk-uat
NEXT_PUBLIC_KEYCLOAK_CLIENT_ID=app-management
NEXT_PUBLIC_KEYCLOAK_REALM=lessondesk
NEXT_PUBLIC_KEYCLOAK_SCHEME=https
NEXT_PUBLIC_KEYCLOAK_HOST=auth.k8s.uat.fin.fullfacing.com
NEXT_PUBLIC_KEYCLOAK_PORT=443
NEXT_PUBLIC_SENTRY_DSN=https://cde8ad48495a4ac082cb4a321ac3c747@sentry-public.k8s.dev.fin.fullfacing.com/11
NEXT_PUBLIC_CMS_SCHEME=https
NEXT_PUBLIC_CMS_HOST=cms.lessondesk.dev
NEXT_PUBLIC_CMS_PORT=443
Running
And run the project (defaults to port 3000
):
$ npm run dev
for a production build of the site:
$ npm run build && npm start