Perfil Político
Front-end for Perfil Político — a platform for profiling candidates in Brazilian 2018 General Election, based entirely on open data.
Prerequisites
- Node.js 10
npm
5+
You can use nvm
to manage multiple installations of node.js on your computer (check nvm instalattion guides for MacOS
and Linux here and for Windows here).
Once you have it, you can use the right node version for the project using these commands:
nvm install 10.0.0
nvm use 10.0.0
Install
$ npm install
Developing
$ npm start
It will make your website available here: 127.0.0.1.xip.io:8080
(more about the .xip.io
trick).
Deploying
To create a deploy of your app, use the command:
$ npm run build
Then serve the contents of the build/
directory.