1.0.11 โ€ข Published 1 year ago

vite-tuto v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Version License Package Monthly Downloads Docs

Tuto is the short of Tutorial and the best/easier way to start creating a SPA using the latest versions of the best frameworks out there! ๐Ÿคฉ

๐Ÿ‘จ๐Ÿปโ€๐Ÿซ Basic topics

๐Ÿ’Ž Features

  • Basic login/logout state definition using Pinia.
  • Basic Store configured using Pinia and Persist Plugin (stores/index.js).
  • Basic "Home" and "Login" pages defined (src/pages/).
  • Basic "Title" and "Button" components defined using slots and custom properties.
  • Basic router configuration defined (/router.js).
  • Basic GET request using Axios (Spotify Tracker API). This request needs an Authorization Bearer Token . For security purposes you can just set this token on environment files.
  • Environment file example.
  • Jest configuration defined.
  • Unit test suite per each defined page, API test included ๐Ÿ˜Ž.
  • Path alias defined (vite.config.js).
  • GitHub actions workflow example defined.

๐Ÿ› Folder Structure

vite-tuto
โ”œโ”€ .gitignore
โ”œโ”€ LICENSE
โ”œโ”€ README.md
โ”œโ”€ babel.config.json
โ”œโ”€ index.html
โ”œโ”€ jest.config.js // ๐Ÿƒ Unit tests configuration
โ”œโ”€ jsconfig.json
โ”œโ”€ package-lock.json
โ”œโ”€ package.json
โ”œโ”€ public
โ”‚  โ””โ”€ favicon.ico
โ”œโ”€ router.js // ๐Ÿงญ Handle page routes
โ”œโ”€ src
โ”‚  โ”œโ”€ App.vue
โ”‚  โ”œโ”€ assets
โ”‚  โ”‚  โ”œโ”€ css
โ”‚  โ”‚  โ”‚  โ””โ”€ index.css // ๐ŸŽจ Main stylesheet file
โ”‚  โ”‚  โ”œโ”€ logo.png
โ”‚  โ”‚  โ”œโ”€ screenshots
โ”‚  โ”‚  โ”‚  โ””โ”€ login.png
โ”‚  โ”‚  โ””โ”€ scripts
โ”‚  โ”‚     โ”œโ”€ api.js // ๐Ÿ“ก Handle api calls
โ”‚  โ”‚     โ””โ”€ session.js // ๐Ÿ‘ฆ๐Ÿป Handle user session
โ”‚  โ”œโ”€ components
โ”‚  โ”‚  โ”œโ”€ Button.vue
โ”‚  โ”‚  โ”œโ”€ MainSection.vue
โ”‚  โ”‚  โ”œโ”€ Title.vue
โ”‚  โ”‚  โ””โ”€ UserSessionLink.vue
โ”‚  โ”œโ”€ main.js // ๐Ÿชด Application's entry point
โ”‚  โ””โ”€ pages
โ”‚     โ”œโ”€ Home.vue
โ”‚     โ”œโ”€ Login.vue
โ”‚     โ””โ”€ SpotifyTracker.vue
โ”œโ”€ stores
โ”‚  โ””โ”€ index.js // ๐Ÿ’พ Save general state of the app
โ”œโ”€ tests // ๐Ÿƒ Unit tests
โ”‚  โ”œโ”€ routerMock.js
โ”‚  โ””โ”€ unit
โ”‚     โ”œโ”€ spotify.spec.js
โ”‚     โ””โ”€ user-session.spec.js
โ””โ”€ vite.config.js // ๐Ÿ“ฆ Bundler setup, alias and more

๐Ÿš€ Install

Install it locally in your project

npm install

npm run dev

๐Ÿงช Unit tests

npm run test
1.0.9

2 years ago

1.0.11

1 year ago

1.0.10

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago