Skip to main content
This page aims @ covering MEAN development using angular6 ,express , node and monoDB.

to start with :

Softwares to install

1.node -https://nodejs.org/en/download/
2.mongoDB - https://www.mongodb.com/download-center#community

once these are installed and via node using npm
we can install express .

3.angular 6 - https://angular.io/guide/quickstart

use angular cli to create angular app.

Node js - we can do server side programming using javascript ,
it used the chrome V8 engine , the engine is built using ECMAScript
which is a standard for javascript. 
 
reference - https://v8.dev/

mongoDB - installation and step to verify :




Double click on the .msi file which is downloaded -
click next until installation completes.




click on  the mongo to launch mongo shell.
another way to interact with  mongoDB is using mongo compass .



once mongo shell is launched type in

1.db - lists the current db being used
if u wanna switch use 'dbname'   -eg ' use 'devDB'.
 
 
ANGULAR SETUP -
 
use this link to do the local setup -
 
https://angular.io/guide/setup-local#install-the-angular-cli 
 
download  and install
1 .node  - https://nodejs.org/en/download/
 
usage of node is for web server and package management.
if you are not aware of package management don't worry  
node uses npm command which u can run from command line.
 
npm install <packagename>
https://docs.npmjs.com/cli/v7/commands/npm

once u install the package it will downloaded to your local \node_modules folder

via this u can install all dependencies .














Comments

Popular posts from this blog

Node and Auth0 - Integration

 so now we have completed all the steps for integration  since we have the node and auth0 as two separate things the integration happens in the app.js  we need to modify the app.js with some auth0 code  app.js / const http = require('http'); const express = require('express'); var router = require('express').Router(); const { auth } = require('express-openid-connect'); const app = express(); app.use('/', router); const hostname = '127.0.0.1'; const port = 3000; http.createServer(app)   .listen(port, () => {     console.log(`Listening on `);   }); const config = {   authRequired: false,   auth0Logout: true,   secret: 'a long, randomly-generated string stored in env',   baseURL: 'http://localhost:3000',   clientID: 'QxpAXsXkzy0Vm2VdT6dFFS0VOKdrah67',   issuerBaseURL: 'https://dev-bnga041p.us.auth0.com' }; console.log(config) // auth router attaches /login, /logout, and /callback routes to the baseURL app.u

Auth0

You might be wondering what is this auth0  it is used for authentication of you applications  could be any apps  1.SPA - Angular , React  2.web app 3.Node  here we will talk about the node use case and go with example  moving ahead for now  if your are not familiar with node dont worry its a funny exercise for now walk with me  we dont have to worry too much for authentication as the service is  provided from auth0   create your node app  install node  https://nodejs.org/en/download/package-manager/  choose your os and do the installation once installed check for the version ' node -v  ' i assume u have installed so that u wil get the version for now  since iam using LINUX this will look like root@strings-desktop:/home/strings/js# node -v v16.13.0 moving on to creating node app for now    create a file app.js and paste the contents  app.js/ const http = require('http'); const express = require('express'); const app = express(); const hostname = '127.0.0.1&#