0% found this document useful (0 votes)
4 views3 pages

NPM Guide

Uploaded by

Diego Rayklash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

NPM Guide

Uploaded by

Diego Rayklash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

--------- Portal Inversiones -------

Specs :

Node ver. : 13.14.0

----------- REACT JS ----------------


--Install server
npm install -g serve

--Serve your app


serve -s build

--Install react starter


npm intall -g create-react-app

--Create a react app


npx create-react-app myapp

--# Builds the application for production


npm run build

--# Runs the application in http://localhost:3000


npm start

# Runs the tests


npm test

--------- NPM ----------------


-- Show current npm config
npm config list

-- Set proxy settings


npm config set proxy http://10.50.8.25:8080
npm config set https-proxy https://10.50.8.25:8080

--auth
npm config set proxy http://ELEKTRA\dandaluz:[email protected]:8080
npm config set https-proxy https://ELEKTRA\
dandaluz:[email protected]:8080

npm config set proxy http://dandaluz:[email protected]:8080


npm config set https-proxy https://dandaluz:[email protected]:8080

npm config set proxy http://ELEKTRA/dandaluz:[email protected]:8080


npm config set https-proxy
https://ELEKTRA/dandaluz:[email protected]:8080

npm config set proxy http://dandaluz:[email protected]:8080


npm config set https-proxy https://dandaluz:H4l83initz97217810.50.8.20:8080
npm config edit proxy http://dandaluz:[email protected]:8080
npm config edit https-proxy https://dandaluz:[email protected]:8080

-- Remove current proxy setting


npm config rm proxy
npm config rm https-proxy

-- Show / delete current settings


npm config get [<key> [<key> ...]]
npm config delete <key> [<key> ...]
npm config list [--json]
npm config edit
npm set <key>=<value> [<key>=<value> ...]
npm get [<key> [<key> ...]]

-- Disable ssl cert verification


npm config set strict-ssl false

-- Enable ssl cert verification


npm config set strict-ssl true

-------- JSON Server -------------


npm install -g json-server

--
json-server --watch ./src/db.json --port 3001

------ WEBPACK --------


1. Install webpack locally: npm install -g webpack
2. Build demo: webpack --config webpack.config.standard.js --progress --colors --
hot --inline or webpack --config webpack.config.large.js --progress --colors --hot
--inline. It will create dist directory.
3. In Tomcat webapps directory create create another directory for your demo ag-
grid.
4. Copy index.html and dist to ag-grid.
5. Access it on http://host:port/ag-grid.

-- After module update


package-lock.json then run rm -rf node_modules && npm i

---- EASY CONNECT REMOTE SQL DATABASE ----------

sqlplus usr/[email protected]/remote_service_name
sqlplus SIF/[email protected]:1521/GENTEC

"build": "webpack --config webpack.config.js",

-------- Start API proyect -----------


npm run start-api

--------- N (Node version manager) ------------


--- Install version manager
sudo npm install -g n

--- Upgrade to latest stable


sudo n stable

--- Set specific version

sudo n <version>

- Ex

sudo n 13.14

You might also like