2019-10-17 20:30:00 +00:00
|
|
|
# Eemiens vs Héticiens
|
2019-10-01 15:26:10 +00:00
|
|
|
|
2019-10-17 20:30:00 +00:00
|
|
|
Plus Eemien ou Héticien ? Le jeu qui ne fait pas rire les élèves.
|
2019-10-02 07:52:10 +00:00
|
|
|
|
2019-10-01 15:26:10 +00:00
|
|
|
## Project setup
|
2019-10-17 20:30:00 +00:00
|
|
|
|
|
|
|
Launch REST API:
|
|
|
|
|
|
|
|
```
|
|
|
|
cd server
|
|
|
|
npm install
|
|
|
|
npm start
|
|
|
|
```
|
|
|
|
|
|
|
|
Start client:
|
|
|
|
|
2019-10-01 15:26:10 +00:00
|
|
|
```
|
2019-10-17 20:30:00 +00:00
|
|
|
cd client
|
2019-10-01 15:26:10 +00:00
|
|
|
npm install
|
2019-10-17 20:30:00 +00:00
|
|
|
npm run serve
|
2019-10-01 15:26:10 +00:00
|
|
|
```
|
|
|
|
|
2019-10-17 20:30:00 +00:00
|
|
|
Then you can browse the client at `http://localhost:8080/` and the API at `http://localhost:3000/`.
|
|
|
|
|
|
|
|
### Client development
|
|
|
|
|
|
|
|
#### Compiles and hot-reloads for development
|
2019-10-01 15:26:10 +00:00
|
|
|
```
|
|
|
|
npm run serve
|
|
|
|
```
|
|
|
|
|
2019-10-17 20:30:00 +00:00
|
|
|
#### Compiles and minifies for production
|
2019-10-01 15:26:10 +00:00
|
|
|
```
|
|
|
|
npm run build
|
|
|
|
```
|
|
|
|
|
2019-10-17 20:30:00 +00:00
|
|
|
#### Run your tests
|
2019-10-01 15:26:10 +00:00
|
|
|
```
|
|
|
|
npm run test
|
|
|
|
```
|
|
|
|
|
2019-10-17 20:30:00 +00:00
|
|
|
#### Lints and fixes files
|
2019-10-01 15:26:10 +00:00
|
|
|
```
|
|
|
|
npm run lint
|
|
|
|
```
|
|
|
|
|
2019-10-17 20:30:00 +00:00
|
|
|
#### Run your end-to-end tests
|
2019-10-01 15:26:10 +00:00
|
|
|
```
|
|
|
|
npm run test:e2e
|
|
|
|
```
|
|
|
|
|
2019-10-17 20:30:00 +00:00
|
|
|
#### Run your unit tests
|
2019-10-01 15:26:10 +00:00
|
|
|
```
|
|
|
|
npm run test:unit
|
2019-10-02 07:52:10 +00:00
|
|
|
```
|