README.md 1.38 KB
Newer Older
François Delbrayelle's avatar
init  
François Delbrayelle committed
1 2
# vue-calc

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
## Exercise description

The goal of this exercise is to develop a simple calculator with Vue 2. The interface has to be simpliest as possible.

Here are the specifications that need to be implemented:
- As a user I want to type simple operations (addition, substraction, multiplication, division) in an input text at the top in order to see results.
- As a user I want to type simple operations by using digits buttons to type my numbers in order to see them in the input text at the top.
- As a user I want to choose my operation with buttons "+", "-", "*" and "/" in order to see results in the input text at the top.
- As a user I want to see the result of my operation with an "=" button in order to see results in the input text at the top.
- As a user I want there is some control on what I type or select with buttons in order to ensure there is no error (for instance I cannot type or select "42+*").
- ...

:warning: Don't forget to install Vue CLI with `npm install -g @vue/cli` and to open your favourite IDE if it's not done yet!

Good luck!

François Delbrayelle's avatar
init  
François Delbrayelle committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Run your tests
```
npm run test
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).