All Projects β†’ DevStack06 β†’ Blog-Server

DevStack06 / Blog-Server

Licence: Apache-2.0 license
The backend Code of Flutter Blog App which is the part of Youtube series. It is developed using the NodeJS/ExpressJs with MongoDB Database

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Blog-Server

Natours
An awesome tour booking web app written in NodeJS, Express, MongoDB πŸ—½
Stars: ✭ 94 (+184.85%)
Mutual labels:  expressjs, mongodb-atlas
react-app-simple-chat-app
A Simple Chat Application using MERN stack (MongoDB, Express JS, React JS, Node JS) and Socket.io for real time chatting
Stars: ✭ 41 (+24.24%)
Mutual labels:  expressjs, mongodb-atlas
BotBlock.org
BotBlock - The List of Discord Bot Lists and Services
Stars: ✭ 29 (-12.12%)
Mutual labels:  expressjs
tuffilink
Capable system for URL shortening with the use of an SQL database. Tuffilink is named after an elephant 🐘
Stars: ✭ 13 (-60.61%)
Mutual labels:  expressjs
AmigoChat-Realtime-Chat-Application
AmigoChat is a responsive real-time chat application built on MERN Stack and Socket io.
Stars: ✭ 22 (-33.33%)
Mutual labels:  expressjs
gatsby-reactstrap
Adding Bootstrap 4 to an Gatsby React App and serve generated the static site with Express.js
Stars: ✭ 25 (-24.24%)
Mutual labels:  expressjs
next-express
Next.js custom webservers with Express.js made easy
Stars: ✭ 64 (+93.94%)
Mutual labels:  expressjs
express-crud-router
Simply expose resource CRUD (Create Read Update Delete) routes for Express & Sequelize. Compatible with React Admin Simple Rest Data Provider
Stars: ✭ 109 (+230.3%)
Mutual labels:  expressjs
mern-boilerplate
React + Express + Webpack + Mongo = MERN Stack Boilerplate
Stars: ✭ 39 (+18.18%)
Mutual labels:  expressjs
spiced-final-project
Career explorer platform developed in React.js in 6 days.
Stars: ✭ 14 (-57.58%)
Mutual labels:  expressjs
order-service
δΈ€δΈͺ基于vuejs,reactjs,nodejs,socket.ioηš„ζœεŠ‘η³»η»Ÿ
Stars: ✭ 22 (-33.33%)
Mutual labels:  expressjs
All-Url-Uploader
A simple telegram Bot, Upload Media File| video To telegram using the direct download link. (youtube, Mediafire, google drive, mega drive, etc)
Stars: ✭ 122 (+269.7%)
Mutual labels:  heroku-deployment
Library-Management-System
An online library management system built with MongodDB, Express.js and Node.js
Stars: ✭ 39 (+18.18%)
Mutual labels:  expressjs
mindjs
Minimalistic, pure Node.js framework superpowered with Dependency Injection πŸ’‘ πŸ’» πŸš€
Stars: ✭ 17 (-48.48%)
Mutual labels:  expressjs
node-crudapi-ts
CRUD boilerplate for create Node Restful API's with Express Framework and Sequelize ORM written in Typescript.
Stars: ✭ 41 (+24.24%)
Mutual labels:  expressjs
ExpressQL
A Ready-to-Go API Skeleton using Node.js + Express.js + GraphQL + MongoDB + JWT Authentication
Stars: ✭ 12 (-63.64%)
Mutual labels:  expressjs
API-Authentication-NodeJs
API Authentication using JWT's (JSON Web Tokens). Plug n Play inside any app which requires authentication. NodeJs Express MongoDB & Redis.
Stars: ✭ 162 (+390.91%)
Mutual labels:  expressjs
Octave.gg
Web front-end for Octave.
Stars: ✭ 19 (-42.42%)
Mutual labels:  expressjs
Express-MongoDB-Authentication
A simple authentication app using Express & MongoDB
Stars: ✭ 15 (-54.55%)
Mutual labels:  expressjs
Vaccine-near-me-Using-Cowin-Government-API
πŸŒŸα΄›ΚœΙͺꜱ Ιͺꜱ α΄€ α΄€α΄˜α΄˜ΚŸΙͺα΄„α΄€α΄›Ιͺᴏɴ ᴍᴀᴅᴇ ʙʏ ᴍᴇ α΄‘Κœα΄‡Κ€α΄‡ ʏᴏᴜ α΄„α΄€Ι΄ α΄„Κœα΄‡α΄„α΄‹ α΄ α΄€α΄„α΄„Ιͺɴᴇ ᴑʜΙͺα΄„Κœ Ιͺꜱ α΄€α΄ α΄€ΙͺΚŸα΄€Κ™ΚŸα΄‡ ɴᴇᴀʀ ʏᴏᴜ πŸ’» πŸŽ―πŸš€
Stars: ✭ 13 (-60.61%)
Mutual labels:  heroku-deployment

Buy Me A Coffee

The Backend code of the YouTube Series Blog app development from scratch using (Flutter, ExpressJS, NodeJS, MongoDB, Heroku, MongoDB Atlas) πŸ˜„ .

Playlist Links:-

Playlist Name YouTube Playlist Link
Blog App Development (Main Playlist) Link
Blog App Development (Only Front-End using Flutter) Link
Blog App Development (Only Back-End using Node/ExpressJs) Link

Resource Link :-

Name Link
Rest API Official Documenatation on Postman Link

Some Other playlist

Playlist Name YouTube Playlist Link
Flutter model class series, for Rest API connection and JSON parsing Link
Flutter Basic series link

Note -: Make sure you Subscribed my YouTube channle also give star to this repository πŸ˜…

Prerequisite check:-

Before going to code make sure to install mongoDB database on your local system πŸ˜… .For installing mongoDB you can take help from the This video .For this project I am using the Mongoose.

Helful Steps :-

Below are the some basic syntax for your help after installing the mongoDB.

  • For starting the server

    sudo service mongod start

  • For stoping the server

    sudo service mongod stop

  • For restarting the server

    sudo service mongod restart

Note -:Above codes are valid for linux only.For windows user can follow this link πŸ˜‰

Fork this repository and then clone it because after forking it you will be updated if i will change the code hereπŸ˜‰

Back End Code folder structure

  • model
    • All Mongoose model schemas
  • routes
    • All end points codes are here(routes folder)
  • index.js file (main Source file)
  • middleware.js (middleware for token validation)
  • config.js(helper function for middleware.js file)

Get the code

  1. Fork this repository
  2. Then create a new folder on you local system, where you want to keep the code.
  3. Create an empty git repository on that folder.

    git init

  4. Copy your forked GitHub repository url
  5. Now pull the code on yoor system

    git pull origin master

Or, else just clone this repository πŸ˜…

1) To run the Rest Server on local system folow this steps-:

  1. For installing all the necessary npm packages-

$ npm install

2.Now,the app is connected to the local mongoDb databse .You must start the mongoDb server before running the backend server .

sudo service mongod start

  1. Below given,is the code of connecting the mongoDB with nodeJs (index.js file) for more details you can follow this video Link for more information-:
mongoose.connect("mongodb://localhost:27017/blogDB", {
  useNewUrlParser: true,
  useCreateIndex: true,
});
  1. Start the server by using below code

$ npm run dev

  1. It will launch the server on http://localhost:5000 this url. This localhost url is a base url you will need this while connecting your rest server with flutter app

If suppose at the same time working with Flutter , Node/Express, and MongoDB your system will be hang them you can host this rest server on heroku cloud(free). So you only need to bother about the flutter code.

2) Remote Rest server setup

  1. First you have to host your MongoDB database on MongoDb Atlas server(Free), for that follow this video link
  2. Then deploy your NodeJs Rest Server on Heroku, for that follow this video link
  3. After that heroku will genrate a final endponits(url). That url will be base url for our flutter app.

3) Alternatively here is my base url for my flutter blog app. You can use it if you find any difficulty on above methods.

Note-: If many person will use this url then there will be chance that my free hosting on MongoDB Atlas server exhausted. At that time I will delete some data from the server πŸ˜…. So my humbel request is to craete your own dedicated rest server πŸ˜….

Link- https://sheltered-waters-80365.herokuapp.com/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].