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
- Install [Node.js](http://nodejs.org)
## Projektin asennus
- Asenna [Node.js](http://nodejs.org)
```
git clone git@github.com:leonidas/gulp-project-template.git <your project name>
cd <your project name>
git clone git@github.com:koodiklinikka/koodiklinikka.fi.git
cd koodiklinikka.fi
npm install
npm start
open http://localhost:9001 in your browser
avaa http://localhost:9001 selaimessasi
```
## CLI Commands
## Komennot
* npm install
* Installs server-side dependencies from npm
* asentaa projektin riippuvuudet
* 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
* Builds everything
# 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.
* kääntää lähdetiedostot