Skip to content

Instantly share code, notes, and snippets.

😸
Starting on git hub

Nelson edoves

😸
Starting on git hub
Block or report user

Report or block edoves

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SQL_basics.sql
-- This is the basic SQL statement to create a table.
CREATE TABLE actors(name VARCHAR(50)); -- actors is the table name and inside the parenthesis is the olumns definition
-- Table with two columns
CREATE TABLE movies(title VARCHAR(200), year INTEGER);
-- Insert date into the movies table
INSERT INTO movies VALUES("Avatar",2009) ;
#Retrieving a Result Set
View installation code for react
npm i react react-dom
npm i -D @babel/core @babel/preset-env @babel/preset-react webpack webpac-cli webpack-dev-server babel-loader css-loader style-loader html-webpack-plugin
View NPMCommand.text
* Check to see the list of installed packages on your app and their folders inside it
sample command: npm list
* Check to see the list of installed packages of your application, it will return the main folder
sample command: npm list --depth=0
* Check to see the dependencies a package depend on
sample command: npm view mongoose
this show only the dependencies
sample command npm view mongoose dependencies
for version of the package installed
@edoves
edoves / app.js
Last active Sep 15, 2019
Sample server Express
View app.js
const express = require("express");
const app = express();
// logger
const morgan = require("morgan");
const productRoutes = require("./api/routes/products");
const orderRoutes = require("./api/routes/orders");
// using the morgan the resul will beo nthe terminal
app.use(morgan("dev"));
You can’t perform that action at this time.