Giter VIP home page Giter VIP logo

thu-vu-33 / mern_blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yashboura303/mern_blog

0.0 0.0 0.0 2.21 MB

Blogging app is made with Mongoose, Express & React. Users can write their own blog and view blogs written by other users in their feed. Once signed in users can comment & like each blog. Redux is used as state container app is hosted on Heroku.

Home Page: https://mernbloggingapp.herokuapp.com/

HTML 5.12% CSS 0.14% JavaScript 87.50% SCSS 7.25%

mern_blog's Introduction

MERN_BLOG

Front-End - React + Redux

Back-End - Node.js(Express.js) & MongoDB

Set-Up Project in your machine

  1. Fork the repo and clone it.
  2. Create a new branch.
  3. Make sure you have npm Node.js installed in your system. MongoAtlas is used, so no need for local MongoDB setup.
  4. MongoAtlas Setup https://www.youtube.com/watch?v=7CqJlxBYj-M&feature=youtu.be&t=293 Set up your .env file and paste in the URI that you get from following the instructions in the video above. Also set token secret to anything, it is used for jwt authentication.
MONGO_ATLAS_KEY=mongodb+srv://<dbUser>:<password>@cluster0-m5jph.gcp.mongodb.net/test?retryWrites=true&w=majority
TOKEN_SECRET=

You need to remember to paste in the and . Do NOT share it publicly, and do NOT include the .env file in commits.

  1. [Only once] Run (from the root) npm install and cd client && npm install.
  2. Un-comment line 30 in app.js (root folder) and comment line 24 & line 35-37.(This is to run app locally, please suggest better way if you know).
  3. Open two terminal windows (one for running Server and other for the UI).
  4. To run server, from root folder run nodemon start and to run client, go to client directory and run npm start.
  5. Go to http://localhost:3000 to see the application running.

mern_blog's People

Contributors

yashboura303 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.