Skip to content

Latest commit

 

History

History
77 lines (55 loc) · 1.53 KB

File metadata and controls

77 lines (55 loc) · 1.53 KB

TS-API-Project

Initialize node

npm init
npm install --save-dev lite-server

Initialize TypeScript

tsc -init

Install faker

Install it as a Dev Dependency using your favorite package manager.

npm install @faker-js/faker --save-dev

or

yarn add @faker-js/faker --dev

or

pnpm add @faker-js/faker --save-dev

Building a web app with Parcel

Installation

Before we get started, you'll need to install Node and Yarn or npm, and create a directory for your project. Then, install Parcel into your app using Yarn:

yarn add --dev parcel

Or when using npm run:

npm install --save-dev parcel

Parcel has a development server built in, which will automatically rebuild your app as you make changes. To start it, run the parcel CLI pointing to your entry file:

yarn parcel index.html

Or when using npm run:

npx parcel index.html

@types/google.maps

This package contains type definitions for Google Maps JavaScript API (https://developers.google.com/maps/).

Installation

npm install --save @types/google.maps

To install a package, npm uses the following algorithm:

Normally dependencies in a node project are installed via package.json: https://docs.npmjs.com/files/package.json

You install each dependency with npm install --save my-dependency and it will be added to the package.json file. So the next person on the project can install all the dependencies with npm install command on the same folder of package.json.

npm install