poll.io is built on ReactJS on the Front-End and ExpressJS on the Back-End.
Make sure you have either yarn
or npm
installed. (We recommend yarn
)
yarn install
cd client/
yarn install
Before doing this step, make sure you have nothing running on both port 5000 and port 3000.
You may change these ports in package.json
by replacing
var port = normalizePort(process.env.PORT || '5000');
in ./bin/www
with your own port number for Express. If you do this, make sure that the proxy port in client/package.json
is still the same as your Express port number.
If you have ensured this, run
yarn dev
For live Sass-compiling:
cd client/
yarn watch-css
Simply visit
localhost:5000 // or whatever port you defined
Make sure to disable cache in your browser for proper live reloading of React.