This is a static content front-end site which powers the upcoming version 3 of Participedia.net.
It currently uses hjs-webpack
for the basic build/update configuration (although see #16)
React where appropriate; react-router for all routes; react-intl
localization (all copy should be localized).
Auth0
for authentication. Material-ui as baseline UI framework.
node
andnpm
v6 or later (node is just used in the build process)
Clone the repo:
npm clone [email protected]:participedia/frontend.git
npm install:
npm install
Install SASS (see https://sass-lang.com for instructions)
Copy sample.env
to .env
, and adjust it to fit. In general, the only choice will be whether
to use your own API server (in case you're changing the server at the same time) or the staging site.
The sample.env
file has both settings, you just uncomment whichever one you want to use in your setup.
npm start
will start a dev server which will detect code changes (both
in JS and CSS) and do "hot reloading". It will not detect changes to the
webpack config for example.
npm build:js
We use Prettier with default settings to enforce coding style.