npm install
npm run serve
npm run build
npm run lint
On your server, after importing production build, create a .htaccess
file in the web app root and write this:
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</ifModule>
this will allow the server to redirect any url to the index.html (no worries the router will take care of displaying the corresponding page). If you do not do this step, you will have 404 errors when reaching website through all composed links.