git clone [email protected]:lagomus/lec-site.git
npm install
npm run bootstrap
Execute in three different terminals:
npm run ui:dev
npm run storybook:dev
npm run web:dev
Two ways to prepare a deploy
Built the static HTML to /packages/web/out and run with an external web server (NGINX, Apache, Node.js, etc):
npm run ui:build
npm run web:static-build
Starts a Node.js server that supports hybrid pages, serving both statically generated and server-side rendered pages:
npm run ui:build
npm run web:build
npm run web:start
Create the configuration file in directory /packages/web named .env.
cd /packages/web
touch .env
In the .env file, add the required variables:
# Google reCAPTCHA
NEXT_PUBLIC_RECAPTCHA_SITE_KEY=6LcXVwgcAAAAAE2w-UAQvxlo1SZfw0a5JNN8vHfN
# EmailJS
NEXT_PUBLIC_USER_ID=user_x6k6aEBqwOZ2fFRFmmAOz
NEXT_PUBLIC_SERVICE_ID=service_hg8l1xt
NEXT_PUBLIC_TEMPLATE_ID=template_aaz22z7