You'll need to install Node (version at leat 4.4.4) from the Node.js website. Once installed, check the version with nodejs --version. Then run the following commands inside the frontend/ directory:
cp src/config.ts.dist src/config.ts
sudo npm install -g ts-node
npm installIf there is a failure at npm install, your Node.js version is too old or you have two versions of Node.js installed.
##Fire up the server
To run the livereload server:
npm start
Because it is cumbersome to launch both the frontend and backend server by hand, there is a tool called tmuxinator that can simplify your life. It requires to have tmux installed.
We assume that your frontend is in ~/sigma/frontend, your backend is in ~/sigma/backend and you have configured a python3 virtualenv called .env as described in the backend README.md. Then run tmuxinator new sigma. Go to the created file ~/.tmuxinator/sigma.yml and fill it with this content:
name: sigma
root: ~/
windows:
- editor:
layout: main-horizontal
panes:
- cd ~/sigma/frontend
- cd ~/sigma/backend && source .env/bin/activate && python manage.py runserver
- cd ~/sigma/frontend && npm start
After this, you'll just have to enter one command to get ready to develop:
tmuxinator sigma
To navigate on the site, fire up the backend server (see the readme) and connect to the site using accounts from this list :
- user@sigma.fr / user
- denis.merigoux@sigma.fr / denis.merigoux
- camille.masset@sigma.fr / camille.masset
- hugo.tresentaux@sigma.fr / hugo.Tresentaux
- arthur.pesah@sigma.fr / arthur.pesah You can connect to any account you see on the site by using the email adress / username pattern just like above.
The wiki for the application is here : https://github.com/ProjetSigma/frontend/wiki
Project structure based on Angular2 seed sass