Skip to content

NLPforCOVID-19/covid-19-ui

Repository files navigation

COVID-19-UI

This project depends on covid-19-api.

Requirements

Setup

To install all the dependencies, use npm.

$ npm install

Develop

To launch a development server, run the following command.

$ npm run dev

where API_URL is the root end-point of the API server. By default, this command will serve the website from localhost:3000 in a development mode.

Build

Run the following command.

$ npm run build

This command builds a website to serve with a Node.js server.

Export

To serve the website with a normal (static file) web server, export the built files by the following command.

$ npm run export

This command creates files under the out directory.

Environment Variables

To develop the website, put .evn.local on the root of the project.

NEXT_PUBLIC_API_URL=https://xxx.jp/xxx
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=xxxxxxxxxxxxx

Branching Strategy

  • Feature branches are first merged into "staging" (or release, development) branch.
  • Then the staging branch is merged into "master" branch, which is for production release.