On 20 June, the European Parliament will vote on the Copyright Directive.
Members of the parliament are the only ones that can stand in the way of bad copyright legislation.
Note: This is a NodeJS revamp of the old website
Deployment:
Staging (dev branch):
Frontend:
Backend:
- NodeJS v8.11.2
- TypeScript
- ExpressJS v4.16.3
- EJS v2.6.1
- server favicon v2.5.0
- i18n v0.8.3
- cookie-parser v1.4.3
This site is written in NodeJS and was built on top of the ExpressJS Framework.
Current deployment platform specifications:
- NodeJS Version: v8.11.1
- Operating System: Ubuntu 16.04.4 LTS
- Architecture: x86_64
NodeJS Dependencies:
package name | used version |
---|---|
ExpressJS | 4.16.3 |
EJS | 2.6.1 |
serve-favicon | 2.5.0 |
i18n | 0.8.3 |
cookie-parser | 1.4.3 |
Installation & Quick setup:
- Open up your favourite terminal (and navigate somewhere you want to download the repository to)
- Make sure you have nodejs installed. Test by entering
$node -v
If this returns a version number, NodeJS is installed. If not, get NodeJS here. - Clone the repository and navigate to it.
$git clone https://github.com/savetheinternetinfo/website.git && cd website
- Run the post setup script to install typescript:
$npm run postsetup
- Install all dependencies by typing
$npm install
Or use Docker:
- Install Docker and docker-compose
- Clone the repository and navigate to it.
$git clone https://github.com/savetheinternetinfo/website.git && cd website
- Then run
docker-compose run --rm npm i && npm run build
this builds the container and the sources - After that run
docker-compose up
this starts the docker container with the comiled sources
Developing & Building:
Build and run a local instance:
$ npm run dev
Build only:
$ npm run build
Start only:
$ npm start
Run file watcher for automatic builds:
$ npm run watch
Info:
Per default, the server runs on port 3000 (http://localhost:3000).
This can be customized in the config.ts
file.
- //TODO