Skip to content

l3ossZ/vue3-cs442-651-200

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

vue3-docker-starter

docker-compose, vite, vue3, vue-router, pinia, tailwindcss, flowbite

Development

docker-compose up -d
docker-compose exec app npm install
docker-compose exec app npm run dev

Access to localhost at port 3000 http://localhost:3000

Hooking into the container

docker-compose exec app /bin/bash

Using npm command from host

docker-compose exec app npm ...
# For example:
docker-compose exec app npm install -g [email protected]

Setting up the Project for Docker

If you want to change default port (3000), the port must be set to match the one in the docker-compose.yml file.

Open the vite.config.js file and change the server object with the port field to the configuration:

import { fileURLToPath, URL } from 'url'

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  server: {     
    port: 3000    // <-- change port
  },
  plugins: [vue()],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  }
})

Tailwind Cheat Sheet

VS Code Tailwind Extension

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 72.9%
  • CSS 14.3%
  • JavaScript 10.9%
  • HTML 1.9%