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 :: javascript simulate click on element 
Javascript :: javascript check if variable is a jquery object 
Javascript :: js capitalize first letter 
Javascript :: how to remove a list of classes from an element using js 
Javascript :: javascript input prompt example 
Javascript :: js sort by date 
Javascript :: iterate over map in javascript 
Javascript :: js number format 
Javascript :: how to convert node list to array in javascript 
Javascript :: js Date(date).toLocaleString() MINUUTES 
Javascript :: generate combinations of values from multiple array javascript 
Javascript :: how to know if a number has a decimal number js 
Javascript :: scroll to top javascript 
Javascript :: mongoose find sort 
Javascript :: vue cdn 
Javascript :: js addeventlistener 
Javascript :: creating array of objects usinng reduce js 
Javascript :: js get element by X Y 
Javascript :: element en html and js 
Javascript :: tcp listen node 
Javascript :: detect logged user wordpress javascript 
Javascript :: return symmetric difference of the array javascript 
Javascript :: Not allowed to navigate top frame to data URL 
Javascript :: javascript change css 
Javascript :: javascript two character integer 
Javascript :: Error: Not implemented: window.alert 
Javascript :: smooth-scroll.js 
Javascript :: js to lowercase 
Javascript :: number round 
Javascript :: largest number javascript 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =