GithubHelp home page GithubHelp logo

kawanchaudhary / mindfuel_web Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 23.97 MB

Fullstack open source blogging application made with Firebase, MongoDB, Express, React & Nodejs

Home Page: https://mindfuel-web-fe.onrender.com/

JavaScript 68.01% HTML 0.76% CSS 31.23%
expre firebase full-stack-web-development mongodb node react axios bycryptjs cors css3

mindfuel_web's Introduction

MIND FUEL

Fullstack open source blogging application made with Firebase, MongoDB, Express, React & Nodejs


Content

Live website link

Check the live website : Click here 🚀

If you enjoy the content, please register and contribute a well-written story.

Configuration and Setup

In order to run this project locally, simply fork and clone the repository or download as zip and unzip on your machine.

  • Open the project in your prefered code editor.
  • Go to terminal -> New terminal (If you are using VS code)
  • Split your terminal into two (run the Frontend on one terminal and the Backend on the other terminal)

In the first terminal

$ cd Frontend
$ npm install (to install frontend-side dependencies)
$ npm run start (to start the frontend)
  • To run the application on localhost change the backend url
  • Directory -> Frontend/src/Axios/axiosInstance.js
  • Replace `${process.env.REACT_APP_BACKEND_URI}` with "http://localhost:5000/"

In the second terminal

  • cd Backend and Set environment variables in config.env under ./config.
  • Create your mongoDB connection url, which you'll use as your MONGO_URI.
  • Setup your firebase app, storage bucket and generating private key JOSN
  • Supply the following credentials in .env file.

#  ---  Config.env  ---

NODE_ENV = development
PORT =5000
URI =http://localhost:3000
MONGO_URI = Your Mongo URL
JWT_SECRET_KEY = Your secret key
JWT_EXPIRE = 60m
RESET_PASSWORD_EXPIRE = 3600000 

# Nodemailer

SMTP_HOST =smtp.gmail.com
SMTP_PORT =587
EMAIL_USERNAME =  [email protected]
EMAIL_PASS = Your Password

# Firebase

STORAGE_BUCKET = Bucket Uri

TYPE = Type of Account

PROJECT_ID = Your project Id

PRIVATE_KEY_ID = Your Private Key id

PRIVATE_KEY = Your Private Key

CLIENT_EMAIL= Your Client Email

CLIENT_ID = Your Client Id

AUTH_URI = Your Auth Uri
 
TOKEN_URI = Your Token

AUTH_PROVIDER_CERT_URL = Your Auth Provider

CLIENT_CERT_URL = Your Client Credential URl

UNIVERSE_DOMAIN = Your Google Domain


# --- Terminal ---

$ npm install (to install backend-side dependencies)
$ npm start (to start the backend)

Key Features

  • User registration and login
  • Authentication using JWT Tokens
  • Story searching and pagination
  • CRUD operations (Story create, read, update and delete)
  • Upload user ımages and story ımages to the server
  • Liking stories and adding stories to the Reading list
  • Commenting on the story
  • Skeleton loading effect
  • Responsive Design

Technologies used

This project was created using the following technologies.

Frontend

  • React js - JavaScript library that is used for building user interfaces specifically for single-page applications
  • React Hooks - For managing and centralizing application state
  • react-router-dom - To handle routing
  • axios - For making Api calls
  • Css - For User Interface
  • CK-Editor - Rich Text Editor
  • uuid - For random id generator
  • React icons - Small library that helps you add icons to your react apps.

Backend

  • Node js -A runtime environment to help build fast server applications using JS
  • Express js -The server for handling and routing HTTP requests
  • Mongoose - For modeling and mapping MongoDB data to JavaScript
  • express-async-handler - Simple middleware for handling exceptions inside of async express routes and passing them to your express error handlers
  • jsonwebtoken - For authentication
  • Bcryptjs - For data encryption
  • Nodemailer - Send e-mails from Node.js
  • Dotenv - Zero Dependency module that loads environment variables
  • multer - Node.js middleware for uploading files
  • slugify - For encoding titles into a URL-friendly format
  • cors - Provides a Connect/Express middleware

Database

  • MongoDB - It provides a free cloud service to store MongoDB collections.
  • Firebase - The Firebase Admin Node.js SDK enables access to Firebase services from environments in Node.js for uploading files.

Other Details

For the project to be deployed on render, package.json has been added to the root directory. You may view the website from the first section.

Author

License

This project is licensed under the MIT License.

mindfuel_web's People

Contributors

kawanchaudhary avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.