Code repository for the frontend, user facing web pages of the Meteor linked political data archive.
Written in JSX and ES6 using the ReactJS framework and node.js
Fetches data from the Meteor API
Current state: Beta
- Clone this repository
- set the server address in
.env
(e.g.,REACT_APP_API=https://meteor.opted.eu/api/
) - run
npm install
- start development server with
npm run start
- Clone this repository
- set the server address in
.env
(e.g.,REACT_APP_API=https://meteor.opted.eu/api/
) - run
npm install
- test server with
npm run start
- install
serve
as root user withnpm install -g serve
- build the react app with
npm run build
- Use
misc/meteor_frontend.service
to run it with system.d - Reload systemctl:
sudo systemctl daemon-reload
&sudo systemctl enable meteor_frontend.service
- Pass the socket connection to your nginx configuration
Babel devdependencies issue
npm install --save-dev @babel/plugin-proposal-private-property-in-object