What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-09 13:35:16
setup node js express basic setup
npm init -y npm i express Add solution -
-
Other 2021-10-29 19:44:14
initialize npm
npm config ls -l # List some default settings npm config set <key> <value> -g # Set default value for a key npm config set init-author-name "John Doe" -g # Set default author npm config set init-version "1.0.0" -g # Set de... Add solution -
Shell/Bash 2021-10-16 13:23:06
open gas less example
$ mkdir gsn-dapp && cd gsn-dapp $ npm init -y $ npm install @openzeppelin/network $ npm install --save-dev @openzeppelin/gsn-helpers @openzeppelin/contracts-ethereum-package @openzeppelin/upgrades @openzeppelin/cli ganache-cli Add solution -
Javascript 2021-10-07 07:32:02
write test code javascript
// create directory // npm init -y // npm install tape // create a file example: filename.js // create a function in it and export as module.exports = functionName // create a test file example: filename.test.js // import the exported function as const ... Add solution -
Javascript 2021-09-23 01:45:03
create server and connect to db and frontend
// create directory //npm init -y //npm i express --save //npm i mysql --save //create public directory //create server.js // <---- In the server js file ---> 'use strict'; const express = require('express'); const app = express(); app.use(expre... Add solution