|
1 |
| -# vue-shortener |
| 1 | +# :lollipop: Vue URL Shortener |
2 | 2 |
|
3 |
| -## Project setup |
4 |
| -``` |
5 |
| -npm install |
6 |
| -``` |
| 3 | +What I'm gonna use: |
7 | 4 |
|
8 |
| -### Compiles and hot-reloads for development |
9 |
| -``` |
10 |
| -npm run serve |
11 |
| -``` |
| 5 | +* [Vue](https://github.com/vuejs/vue) |
12 | 6 |
|
13 |
| -### Compiles and minifies for production |
14 |
| -``` |
15 |
| -npm run build |
16 |
| -``` |
| 7 | +* [Webpack](https://github.com/webpack/webpack) for bundling & developing |
17 | 8 |
|
18 |
| -### Run your tests |
19 |
| -``` |
20 |
| -npm run test |
21 |
| -``` |
| 9 | +* [Pug](https://github.com/pugjs/pug) template engine |
22 | 10 |
|
23 |
| -### Lints and fixes files |
24 |
| -``` |
25 |
| -npm run lint |
26 |
| -``` |
| 11 | +* [vue-cli](https://github.com/vuejs/vue-cli) |
27 | 12 |
|
28 |
| -### Run your unit tests |
29 |
| -``` |
30 |
| -npm run test:unit |
| 13 | +* My [vue-cli-plugin-coffee](https://github.com/cxsper/vue-cli-plugin-coffee) to support [CoffeeScript2](https://github.com/jashkenas/coffeescript) |
| 14 | + |
| 15 | +* [vue-loader](https://github.com/vuejs/vue-loader) for loading `.vue` components |
| 16 | + |
| 17 | +* My [vue-cli-plugin-sugarss](https://github.com/cxsper/vue-cli-plugin-sugarss) to support [SugarSS](https://github.com/postcss/sugarss) linting |
| 18 | + |
| 19 | +* [Stylus](https://github.com/stylus/stylus) CSS Preprocessor |
| 20 | + |
| 21 | +* [PostCSS](https://github.com/postcss/postcss) for `lint`ing and `autoprefix`ing mostly |
| 22 | + |
| 23 | +* [Babel](https://github.com/babel/babel) |
| 24 | + |
| 25 | +* [express](https://github.com/expressjs/express) for static serving |
| 26 | + |
| 27 | +* [Heroku](https://heroku.com) for delpoyment |
| 28 | + |
| 29 | +---- |
| 30 | + |
| 31 | +## Development |
| 32 | + |
| 33 | +```shell |
| 34 | +$ npm run serve |
31 | 35 | ```
|
| 36 | + |
| 37 | +--- |
| 38 | + |
| 39 | +## Project Structure |
| 40 | + |
| 41 | +### `public` |
| 42 | +Static files. |
| 43 | + |
| 44 | +### `src/api` |
| 45 | +API module for `count`ing, `store`ing and `get`ing `Links`. |
| 46 | + |
| 47 | +### `src/components` |
| 48 | +This one serves as the VueJS `components'` storage. Usually `src/components/`.sample contains `.vue` files with: |
| 49 | +* a logic written in `script[lang=coffee]`; |
| 50 | +* a template written in `template[lang=pug]`; |
| 51 | +* styles written in `style[lang=stylus][scoped]`; |
| 52 | + |
| 53 | +### `src/utils/base62.coffee` |
| 54 | +`base62` number encoder. |
| 55 | + |
| 56 | +### `src/utils/variables.sss` |
| 57 | +`Stylus/SugarSS` variables. |
| 58 | + |
| 59 | +### `src/App.vue` |
| 60 | +`Vue` instance. |
| 61 | + |
| 62 | +### `src/main.js` |
| 63 | +Entry point. |
| 64 | + |
| 65 | +--- |
| 66 | + |
| 67 | +:tada: |
0 commit comments