Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

json server npm

# Install JSON Server Globally
npm install -g json-server

# #Install JSON Server Locally
npm install json-server

# Check JSON Server version
json-server --version

# Run JSON server
json-server --watch db.json

# Change the server PORT
json-server --watch db.json --port 4000
Comment

json-server npm

$ json-server --watch db.json --port 3004
Comment

npm json server

// Font awesome install vue
// 1
npm install --save @fortawesome/fontawesome-svg-core 
npm install --save @fortawesome/free-solid-svg-icons 
npm install --save @fortawesome/vue-fontawesome@prerelease

//2

import { createApp } from "vue";
import App from "./App.vue";
import { library } from "@fortawesome/fontawesome-svg-core";
import { faPhone } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";

library.add(faPhone);

createApp(App).component("font-awesome-icon", FontAwesomeIcon).mount("#app");


// 3

<template>
  <h1>Getting Started with Vue.js and Font Awesome</h1>
  <p>Have a phone call: <font-awesome-icon icon="phone" /></p>
</template>
Comment

PREVIOUS NEXT
Code Example
Javascript :: Format number thousands k javascript 
Javascript :: jquery Audio Play on button click 
Javascript :: arrow function forms in javascript 
Javascript :: jest global window object 
Javascript :: jquery delete a cookie 
Javascript :: remove special characters javascript 
Javascript :: javascript array insert at 0 
Javascript :: document.queryselector vs document.getelementbyid 
Javascript :: minimum flatlist size react native 
Javascript :: disable radio button javascript 
Javascript :: js addeventlistener to width of window 
Javascript :: javascript array find highest value of array of objects by key 
Javascript :: unexpected token export type react bottontab navigation 
Javascript :: gms2 object method 
Javascript :: get value by id js 
Javascript :: rendering htmnl element to DOM 
Javascript :: RFC 3339 format js 
Javascript :: react native touchableopacity 
Javascript :: de structuring value from object ES6 and javascript 
Javascript :: react check if focused 
Javascript :: window location redirect javascript 
Javascript :: javascript array distinct 
Javascript :: server express node js 
Javascript :: check if input is valid 
Javascript :: do not trigger useeffect on start 
Javascript :: document get element by id style 
Javascript :: add color to console 
Javascript :: nth value of the Fibonacci sequence in js 
Javascript :: onclick checkbox hide div and unchecked show div 
Javascript :: javascript sort object by key 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =