Blog System With Blogger API Integration (MEAN) 2021

Blog System EXPRESS JavaScript and ANGULAR


Hello World, I made a Blog System Web Application for My Blogging but i don't use this.
Why i don't use i don't know!!!

Technology (This project Made on Linux OS System )

  1. Angular (Fronted) 
  2. Node JavaScript (Express JavaScript Back-end  )
  3. MongoDB (Database)

File System :
Back-end -> server.js (this is server back-end file )
Project Learning -> Fronted Files 


old Files Link;
  1. create-component
  2. BlogSystem28 minutes ago -> Create New Blog (Update Code)
  3.  edit-component
  4. BlogSystem28 minutes ago -> Edit Blog (No Source Code)
  5.  listcomponent
  6. BlogSystem28 minutes ago -> Showing All Blogs Lists
  7. post-view
  8. BlogSystem28 minutes ago -> Full Blog Post
  9. app-routing.module.ts
  10. BlogSystem28 minutes ago -> App Routes
  11. app.component.css
  12. BlogSystem28 minutes ago
  13. app.component.html
  14. BlogSystem28 minutes ago
  15. app.component.spec.ts
  16. BlogSystem28 minutes ago
  17. app.component.ts
  18. BlogSystem28 minutes ago
  19. app.module.ts
  20. BlogSystem28 minutes ago
  21. blogger.service.spec.ts
  22. BlogSystem28 minutes ago 
  23. blogger.service.ts
  24. BlogSystem28 minutes ago -> Blogger Service (If you want connect with Blogger API's)
  25. highlight.service.spec.ts
  26. BlogSystem28 minutes ago
  27. highlight.service.ts
  28. BlogSystem28 minutes ago
  29. issue.model.ts
  30. BlogSystem28 minutes ago -> Issue model for DB 
  31. issue.service.spec.ts
  32. BlogSystem28 minutes ago
  33. issue.service.ts
  34. BlogSystem28 minutes ago -> Back-end Connect service with server.js  
  35. prism.css
  36. BlogSystem28 minutes ago
  37. prism.js
  38. BlogSystem28 minutes ago


Requirements:

  1. Node js -> 
  2. Angular CLI (Command Line Interface)

Download All Project From GitHub 

Make A Folder And Extract All And Back-end ZIP file

Now Install Node On Your System 

Go to ProjectLearing Folder:
Open Terminal Command 

sudo npm install -g @angular/cli



OK Angular Part is Ready 


Now Run The Angular Project 
Command:
ng serve
Home page Without back-end

Output Of Angular Web Application

Setup Back-end

Go To backend folder 
Open Terminal 
npm install
Command
npm start 

But Back-end need MongoDB install first 


Successfully setup 
install Robo3T 

This Project Using By default Port of MongoDB.

Open Robo3T
Make Database name It "firstdb "
Collection Name "issues" 

Robo3t

With Command Line :
Open Terminal 

 $ mongo
 $ use firstdb
You need a insert some data in firstdb with command line 

$ db.issues.insert ({ title: "This is My DB" }) // collection issues

$ show databases

or 

if not working run this 

db.createCollection("issues") 

Ok MongoDB is Ready 

Now Run the server.js

$ npm start

> nodemon server.js

[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node server.js`
(node:10316) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
Express Server Is NOW ON
*******DB Now Connections ON********

output of server.js 

If we refresh the angular web application the don't show anything 

This project uses NGINX reverse Proxy so you need to setup this first. If you are on Linux OS system already have nginx if not install it.

sudo apt update
sudo apt install nginx

sudo nano /etc/nginx/sites-available/default

  location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}

checking errors 
sudo nginx -t

run nginx service 
sudo systemctl restart nginx


Now refresh the page of Angular Web application 
home page with database setup

you don't see this lists because you not insert data into Collection;

insert Into Robo3t -> firstdb->issues->insert document 

{
    "_id" : ObjectId("5d2173891d52091fd62a5cbb"),
    "description" : "sd",
    "status" : "Open",
    "title" : "Hello Wrold",
    "responsebile" : "No Resposiable",
    "severity" : "sdf",
    "__v" : 0
}


Create New Post Button 
open file ->  templateUrl: './listcomponent.component.html',

enter following code 

<button mat-fab [routerLink]="['/create']"
routerLinkActive="router-link-active" >New Post </button>

Full Post View 
full post preview




Create Page View 
Post creating Page


Yes this Disabled File Upload (Enable Back-end code and Services  )and Blogger Integration (Need API key And Blogger ID) you need to  enable it!!!  







Comments

Post a Comment

Popular posts from this blog

Manually Android SDK Setup in Unreal Engine 5

Unreal Engine C++ Programming |Static Mesh| Getting With part-2/10

Unreal Engine 4 Save Game C++