Skip to content

Project for the Udemy course "Vue Samurai". Web pages with cards with images generated by AI and which redirect to the documentation of the respective frameworks.

Notifications You must be signed in to change notification settings

leosimoes/udemy-vuejs-samurai

Repository files navigation

Udemy - Vue Samurai

Project for the Udemy course "Vue Samurai".

Results

Image-04-Cards

Image-05-About

Steps

The steps for developing the project were:

  1. Install package manager, packages
  • Node and npm: https://nodejs.org/en/download
  • Vue: npm install vue in terminal
  • Vue CLI: npm install -g @vue/cli in terminal
  1. Check NodeJS, npm and VueJS versions:
  • node -v
  • npm -v
  • vue --version

Image-01-cmd-NpmNodeVue-Versions

  1. Create project in the desired directory using the vue create udemy-vuejs-samurai command in terminal.

Image-02-cmd-VueCreate

  1. Test the project with npm run serve and open http://localhost:8080/ in the browser.

Image-03-NpmRunServe-localhost

  1. Add BootstrapVue:
  • Run the command npm install bootstrap-vue-3 in the terminal.
  • In package.json and package-lock.json, check if bootstrap-vue-3": "^0.5.1 is in "dependencies".
  • In main.js change the code to:
import { createApp } from 'vue';
import App from './App.vue';
import BootstrapVue3 from "bootstrap-vue-3";
import "bootstrap/dist/css/bootstrap.css";
import "bootstrap-vue-3/dist/bootstrap-vue-3.css";

const app = createApp(App);
app.use(BootstrapVue3);
app.mount('#app');
  1. Remove HelloWorld component:
  • In src/components, delete the HelloWorld.vue file.
  • In src/App.vue, remove references from the HelloWorld component.
  1. Add AppHeader component:
  • In src/components, create the AppHeader.vue file.
  • In src/App.vue, add <AppHeader /> in template and AppHeader in components of export.
  1. Add TrailCard component:
  • In src/components, create the TrailCard.vue file.
  • TrailCard must have the properties framework, explanation, image, color, link.
  • In src/App.vue, use v-for and add <TrailCard /> in template, and TrailCard in components of export.
  • In public, create trails.json file with card objects.
  • Generate images for cards with https://stability.ai/stable-diffusion.

Image-04-Cards

  1. Add Routes
  • Run npm install vue-router in the terminal.
  • In src create router.js
  • Add router in src/main.js.
  • Create views folder in src.
  • In src/views: create:
    • Home.vue with code from App.vue.
    • About.vue with new code.
  • Change App.vue with <router-view /> in your template.

References

Udemy - Vue Samurai - Frederico Fortes: https://www.udemy.com/course/curso-vue-js-vue-samurai-domine-os-conceitos-do-vuejs

About

Project for the Udemy course "Vue Samurai". Web pages with cards with images generated by AI and which redirect to the documentation of the respective frameworks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published