To run the project you have to set up .env
file with envs (proper values you should know, or ask @marckraw):
GOOGLE_CLIENT_ID=asdf
GOOGLE_CLIENT_SECRET=asdf
CREDENTIALS_LOGIN_ENDPOINT=http://localhost:8080/api/public/login
GOOGLE_LOGIN_ENDPOINT=http://localhost:8080/api/public/login/google
NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_BACKEND_API_URL=http://localhost:8080/ - for dev
After clone, install deps:
yarn
Run the NextJS development server (will clean all cache):
yarn clean:run:dev
To run it, without cleaning cache:
yarn dev
Open http://localhost:3000 with your browser to see the result.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts
.
If u want to build static production version, run
yarn serve:export:production
If u want to analyze what was bundled to final prod pacakge run:
yarn serve:export:production:analyze
We have also, Storybook, which is nice way to document react or other frameworks components, to run develop Storybook, run
yarn storybook
It will be available for you on localhost:6006
Production version of components documentation is also available online at: https://bystro-design-system.netlify.app (master branch)
url | |
---|---|
App | https://wheatley.one/ |
API | https://api.wheatley.one/v1 |
Design system | |
Figma wireframes / design | ??? |
Writing tests with Cypress
Writing unit / snapshot tests with Jest