0.1.9 • Published 3 years ago
cravplus-frontend v0.1.9
Prerequisites
- NodeJS >= v12
- npm >= 7
This is a Next.js project bootstrapped with create-next-app.
Components follow the Atomic Design guidelines.
Configure authentication
Configure eslint authentication
Getting Started
Before installing packages the token to install the eslint package is needed. Follow this.
Install packages:
npm installCreate .env.development.local to override environment variables (the defaults are in .env.development).
Run the development server:
npm run devTo avoid errors with webpack server in node run ( use only in test environment ):
export NODE_OPTIONS=--openssl-legacy-providerChange backend service
To use a different backend, configure the environment variable BACKEND_URL. This can be done in the .env.local file for example.
For example, to use the development server add BACKEND_URL=http://51.77.148.212:5000 to the .env.local file.