New Forged Alliance Forever main website to replace http://faforever.com
Requires Node and NPM. To install it, follow these steps :
git clone https://github.com/FAForever/website.git cd website sudo npm install -g yarn yarn install node_modules/.bin/grunt prod yarn --prod cp .env.example .env
Now you're ready to start the server. You can fire it using :
PORT=3000 yarn start
In order to install grunt for the command line, please follow this guide - http://gruntjs.com/getting-started
Docker Install Guide
You will need to setup a default machine in a new terminal window. This can be accomplished by doing the following.
- Build docker image
→ docker build -t faf-website .
- Run docker image
→ docker run --name faf-website -p 3000:3000 -d faf-website
- Open the app in your browser
→ open http://$(docker-machine ip default):3000/
You can find your IP by doing
→ docker-machine ip
Since we are using grunt to handle all tasks, files must be registered in the correct grunt configurations. You can register a new stylesheet by going to grunt/sass.js. You will need to add the sass file underneath each category. The purpose behind each one is for dev and prod. In prod, it will minify the CSS, whereas DEV does not.