Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hqcasanova/vue-task

Implementation of the classical todo challenge in Vue 3.3 + Vite and Firebase
https://github.com/hqcasanova/vue-task

firebase firebase-app-check mobile-first scss spa tailwindcss typescript vitejs vue3 wip

Last synced: 22 days ago
JSON representation

Implementation of the classical todo challenge in Vue 3.3 + Vite and Firebase

Awesome Lists containing this project

README

        

# Task list challenge in Vue 3.3 + Firebase + Tailwind

Based on Code Vertiser's [free React challenge](https://www.codevertiser.com/reactjs-challenge-4-crud-tasklist-app). Firebase and Tailwind were not part of the challenge originally. For an earlier semantic CSS version, head over to [this branch](https://github.com/hqcasanova/vue-task/tree/without_tailwind).

This Vue version started out as a way to quench my curiosity for how much Firebase has changed since I last used it ages ago, in 2014 when Firebase wasn't even under Google's umbrella. In fact, you can check out the relevant Angular.js code in all its outdated glory [here](https://github.com/hqcasanova/quizzer_api/blob/c67bfacf712c8611000faa6ac9073a9d41b5e668/app/assets/javascripts/app/factories.js#L13C33-L13C71).

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).

## 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. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:

1. Disable the built-in TypeScript Extension
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

```sh
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```

### Type-Check, Compile and Minify for Production

```sh
npm run build
```

### Run Unit Tests with [Vitest](https://vitest.dev/)

```sh
npm run test:unit
```

### Run End-to-End Tests with [Cypress](https://www.cypress.io/)

```sh
npm run test:e2e:dev
```

This runs the end-to-end tests against the Vite development server.
It is much faster than the production build.

But it's still recommended to test the production build with `test:e2e` before deploying (e.g. in CI environments):

```sh
npm run build
npm run test:e2e
```

### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint
```