geomm / vite-vue3-pinia-typescript

0 stars 1 forks source link

Rick & Morty Characters Directory

Requirements

Docker version 26.1.4, Node.js version 20.14.0

Development

The workflow is,

In project root directory,

Workflow in detail

1. Compose docker Dev environemnt to work

$ docker compose -f config/docker/docker-compose.yml --env-file ./env/.env.development up -d

2. Jump into Dev environment

$ docker exec -it rick_and_morty_UI_dev /bin/bash

2.1 Develop and deliver

in container's bash,

$ cd usr/src/rick-and-morty-UI
$ npm i
$ npm run format
$ npm run dev

open browser and visit,

http://localhost:8080

2.2 Check Production build process and preview using Vite server

in container's bash

$ npm run build
$ npm run preview

open browser and visit,

http://localhost:4173

3. Build Production docker image

From host machine project directory

4. Run Production docker container for Test (or Produce for delivery)

If the container is already there please remove it, $ docker container rm rick_and_morty_ui_prod_container

Tasks:


Known Issues

Future improvements:


rick-and-morty-UI (Vue application)

Files exist in usr/src/rick-and-morty-UI

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode.

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Lint with ESLint

npm run lint