Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

npm json server

# 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 line break 
Javascript :: how to return character associated to character code javascript 
Javascript :: props to react router link 
Javascript :: keydown event 
Javascript :: workbox push notifications 
Javascript :: set delay javascript 
Javascript :: dont trigger useeffect on start 
Javascript :: how to pass props in gatsby link using styledcomponent 
Javascript :: react native heroicons 
Javascript :: too many open files react native 
Javascript :: jquery read href attribute 
Javascript :: get input value in react using hooks 
Javascript :: js absolute value 
Javascript :: typescript filter array of objects 
Javascript :: javascript average function 
Javascript :: js stop redirect 
Javascript :: javascript new date 30 days ago 
Javascript :: express get ip address of request 
Javascript :: write json file nodejs 
Javascript :: js check if obj all false 
Javascript :: javascript open new window 
Javascript :: asp.net core 3.1 convert system.collections.generic.list`1[system.string] to javascript 
Javascript :: remove text javascript 
Javascript :: mktime in js 
Javascript :: javascript stop delay 
Javascript :: javascript split string into array by comma and space 
Javascript :: js read date from milliseconds 
Javascript :: jquery disable keypress 
Javascript :: how to install nodejs on arch linux 
Javascript :: Javascript console log a int 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =