- Vue.js3 + Code-server (https://coder.com) developement environement in Docker.
- Used Coder as a base image.
- Clone this repository.
git clone https://github.com/domosute/vue-code-server.git
- Build the image.
docker-compose build
- Start the server.
docker-compose up -d
- Access to code-server via web browser. Port 8081 is assigned for it.
http://<hostname>:8081
- Open the terminal from code-server, and from the
/opt/html/
directory, create the project.
# Using Nuxt
root@xxxxxxxxxxxx:/opt/html/# yarn create nuxt-app <project>
- Go into created project folder and perform
yarn upgrade
followed by activating Hot-Module-Replacement of vue-cli-service.
root@xxxxxxxxxxxx:/opt/html/project# yarn upgrade
root@xxxxxxxxxxxx:/opt/html/project# yarn dev
- Start coding. Result can be dynamically checked via web browser with port 8080.
http://<hostname>:8080
[Note]: Make sure to add vue.config.js file with below content for http://localhost:8080 to work
export.default = {
server: {
host:''
},
...
}