# Nuxt multilanguage starter template

v0.0.6

###Before start: 

### Configuration Development
1. Sample of config file is ```.env.development```
2. Copy file to root folder and rename it to ```.env```

`API_URL` – url to real API
`FAKE_API_URL` – url to out fake (nuxt server middleware) API
`PORT` – app port

```
API_URL=http://api.YOUR_PROJECT.com.dev11.vintagedev.com.ua/
FAKE_API_URL=http://localhost:3000/fake-api/
PORT=3000
```

### Production on server: 
PM2 config file: ```./ecosystem.config.js```
To start APP: 
```npm run pm2``` or

``` pm2 start ecosystem.config.js``` Thats all!



### Features:
* dynamic components (Done)

* dynamic components (Done)

* dynamic modals (Need test)

* translation module (Done. Need refactror)

* use data from api or local JSON ( dev/dev_api modes )

* generate from static files (Need test)

* page /vintage-ui for all components 

### `/components/` folder structure:
`/base` – global components like `BaseButton`, `BaseInput`

`/helpers` – utils like `DynamicComponent`

`/layout` – structural blocks like `TheHeader`, `TheFooter`, `TheSidebar` etc

`/sections` – components that backend sends to us (consctuctor blocks)

`/shared` – all other components, that can be reused

Put your components into one of this folders. Not in `/components` root.

#### TODO 
1) Style grids (bootstrap), SCSS

2) Icons font 

3) Guide 

4) Template example 

5) Add all helpers needed 

6) UI-KIT page with default components 

7) Generate from API

8) Prefetch data 

9) Main Preloader

10) Dynamic reloading languages


