mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-03-12 00:03:12 +00:00
translate installation instructions
This commit is contained in:
29
README.md
29
README.md
@@ -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.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user