# Run the application
Of course, you want to know if the application that you just downloaded works.
In order to test if everything works as expected run the following command:
npm run dev.
You should see a message in your console that says:
info: server started at http://localhost:3000
That means that the dev-server successfully started.
After another couple of seconds
vuesion will open the url http://localhost:3000 in your default browser.
You have to wait for a second message that indicates that the client and the isomorphic (universal) code is successfully compiled:
# Development mode and hot reloading
Your application currently runs in development mode, which means that webpack watches for changes.
Every file in the
./src directory will be hot reloaded, so you don't have to reload your browser or restart the dev server during development.
That guarantees a really good dev experience and will make you much more productive.
the only files that are not hot-reloaded are the files in the
./i18n directory; you have to reload your browser to reflect the changes.
# Change web-server port
Your app runs on port
3000 by default, set the
PORT environment variable to configure a different port
npm run dev -- --port 8080 in development mode or
PORT=8080 npm start for your production build.
# Run your application with docker
The application can be served via Docker too.
In order to build the image run:
# install vuepress if you need the docs npm run ci && docker build -t "vue/starter:latest" .
When building is complete, you can proceed with firing up the Docker container:
docker run -it --name vuesion -p 3001:3000 vue/starter:latest
You have to wait for the message:
info: node server started at http://localhost:3000
Docker is available at port: 3001 so a developer can have both Docker and local server running at the same time
Now that you know everything works as expected, see
vuesion in action at http://localhost:3001.