theman550 / DAT257-K9

Project for course DAT257
1 stars 1 forks source link

DAT257-K9

Project for course DAT257

Rules

Definition of done

Configuring frontend's environment

The frontend can be run in different environments depending on the variable "REACT_APP_ENV". Different environments changes certain environment-specific definitions such as API url, and others. "development" is default, to explicitly set environment type:

set "REACT_APP_ENV=production" && npm start

where 'production' can be either development, testing, or production.

To read and use an environment-specific variable in your code; simply import the config and read from it:

import config from './config';
...
console.log(config.api.url);

Linting frontend

In [your working directory]/frontend

npm run lint

Fix all errors/warnings before creating a pull request.

Styling frontend

Team/individual reflections/social contract

https://github.com/theman550/DAT257-K9/wiki

Scrum board

https://app.clubhouse.io/eda257k9