miguel-sc / nnlo-law-website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nnlo-law-website

Prerequisites

You need to have npm installed to build the project. To check if you have npm installed you can run this command in your terminal:

npm -v

Project setup

Open two shells and go to each of the subdirectories, client and server. Then install the dependencies in both directories:

npm install

Compiles and hot-reloads for development

Run development server in both subdirectories with:

npm start

The website can be accessed under port 3000 by default and makes requests to the node server under port 3001.

Populate the server with plots

Create a new directory called:

server/public/plots

Add your png images to this directory with the following naming scheme:

process/plottype/channel/observable/name.png

The default naming scheme can be changed and is defined inside:

client/src/constants.js

Compiles and minifies for production

Build the client application for production:

npm run build

The build folder can then be served by any http server.

About

License:MIT License


Languages

Language:JavaScript 90.8%Language:HTML 8.5%Language:CSS 0.7%