translate installation instructions

This commit is contained in:
Riku Rouvila
2016-10-29 01:17:58 +03:00
parent 388475b7aa
commit 74e1319bde

View File

@@ -16,32 +16,21 @@ Tai koko Koodiklinikkaan yleisesti.
----------------------------- -----------------------------
## Getting things up and running ## Projektin asennus
- Install [Node.js](http://nodejs.org) - Asenna [Node.js](http://nodejs.org)
``` ```
git clone git@github.com:leonidas/gulp-project-template.git <your project name> git clone git@github.com:koodiklinikka/koodiklinikka.fi.git
cd <your project name> cd koodiklinikka.fi
npm install npm install
npm start npm start
open http://localhost:9001 in your browser avaa http://localhost:9001 selaimessasi
``` ```
## CLI Commands ## Komennot
* npm install * npm install
* Installs server-side dependencies from npm * asentaa projektin riippuvuudet
* npm start * npm start
* Compiles your files, starts watching files for changes, serves static files to port 9001 * kääntää lähdetiedostot ja palvelee sovellusta porttiin 9001
* npm run build * npm run build
* Builds everything * kääntää lähdetiedostot
# Production build
Minification, uglification and other tasks you're expected to run before deploying your product can be made by running the build command with env variable NODE_ENV set to "production"
NODE_ENV=production npm run build
## Development guidelines
#### Directory structure
**public** - directory should be dedicated only to compiled/copied files from **src** - directory.
It should be possible to delete directory completely and after **npm start** or **npm run build** everything should be as they were before the deletion.