- https://medium.com/@bhargavbachina
- @bhargavbachina
- channel/UCWLSuUulkLIQvbMHRUfKM-g
- https://www.amazon.com/Ultimate-Full-Stack-Development-MEVN-Production-Grade/dp/8197651175/ref=sr_1_1?dib=eyJ2IjoiMSJ9.NOkSGHiZ7Bvz5Y6sePEFqxaVeHjSnQFAnAr0HvWBEVE.FAER5zs6Xd9phpebupVlW5bBtauH-6W9Zfvr5bb0-k0&dib_tag=se&qid=1721579618&refinements=p_27%3ABhargav+Bachina&s=books&sr=1-1&text=Bhargav+Bachina
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:8 | |
RUN echo 'Building from base image Node:8' | |
ENV MONGO_URL=mongodb://mongo:27017/todos | |
ENV ROOT_URL=http://localhost | |
ENV PORT=3000 | |
RUN apt-get install -y curl | |
RUN apt-get update | |
RUN apt-get install -y --no-install-recommends bsdtar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { HttpModule } from '@angular/http'; | |
@NgModule({ | |
declarations: [ | |
AppComponent | |
], | |
imports: [ | |
HttpModule, | |
], | |
providers: [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { HttpClientModule } from '@angular/common/http'; | |
@NgModule({ | |
declarations: [ | |
AppComponent | |
], | |
imports: [ | |
HttpClientModule, | |
], | |
providers: [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rxjs": "^6.3.3", | |
"rxjs-compat": "^6.4.0" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//import { Observable } from 'rxjs/Observable'; | |
import { Observable } from 'rxjs'; | |
//import { Subject } from 'rxjs/Subject'; | |
import { Subject } from 'rxjs'; | |
//import { Subscription } from 'rxjs/Subscription'; | |
import { Subscription } from 'rxjs'; | |
//import { BehaviorSubject } from 'rxjs/BehaviorSubject'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { Observable } from 'rxjs/Observable'; | |
import 'rxjs/add/observable/retry'; | |
import 'rxjs/add/operator/map'; | |
import { HttpClient } from '@angular/common/http'; | |
@Injectable() | |
export class AppService implements OnInit { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { HttpClient } from '@angular/common/http'; | |
import { retry, map, catchError } from 'rxjs/operators'; | |
@Injectable() | |
export class AppService implements OnInit { | |
constructor(private http: HttpClient) {} | |
ngOnInit(){ | |
this.appConfig = this.http.get(this.configUrl); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "user_api", | |
"version": "1.0.0", | |
"description": "sample rest api", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Bhargav Bachina", | |
"license": "ISC" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "user_api", | |
"version": "1.0.0", | |
"description": "sample rest api", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Bhargav Bachina", | |
"license": "ISC", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require("express"), | |
bodyParser = require("body-parser"), | |
app = express(), | |
port = 3070; | |
// array to hold users | |
const users = [{firstName:"fnam1",lastName:"lnam1",userName:"username1"}]; | |
app.use(bodyParser.json()); |
OlderNewer