0.1.9 • Published 1 year ago

cravplus-frontend v0.1.9

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

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 install

Create .env.development.local to override environment variables (the defaults are in .env.development).

Run the development server:

npm run dev

To avoid errors with webpack server in node run ( use only in test environment ):

export NODE_OPTIONS=--openssl-legacy-provider

Change 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.