Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Repo.

  • This repo is containing two other folders, api and react-web

  • api (back): deal with node api. it has also its readme file.

  • react-web (front) deal with how to connect front to back end with proxy. It also has its readme file

MongoDB

Mongoose: Mongoose is a MongoDB object modelling tool designed to work in an asynchronous environment.

1- node

2- in node: const person =require(‘./api/model/person.js’) note: for this code we have to be out of directory

3- in node command: person=Person.create({firstName:'John', lastName:'Rambo'})

if person not available make a new one OR if it is available switch to.

som mongoDB command

in terminal:

mongo (will start mongo server)

show dbs (show available databases)

use <database name> (switch to database)

db.< database name> .find() ( will show entire databse)

show collections < show collections entire may availbale entir database.

db.dropDatabase() (drop database note: need to be on database which need to drop)


passport:

yarn add passport passport-local passport-local-mongoose

About

This is a class tutorial of a full stack app made by NodeJs and Reactjs .... this repo contains two other folders. API folder as back end(Node) and react-web as front end(react)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages