vigneshshettyin / RestFul-Blog

Developer Blog Using Express Back-end & React Front-end With Markdown Support.

Home Page:https://react-blog.vigneshcodes.in/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌐 RestFul Blog

Featured Blogger is a MERN RestFul API-based multi-user blogging app with markdown support.

MERN is a full-stack implementation in MongoDB, Express Js, React/Redux, Nodejs

Clone

$ git clone https://github.com/vigneshshettyin/RestFul-Blog.git
$ yarn install

Project Structure

LICENSE
package.json
Back-end/
   package.json
   .env (To Store Secrets)
Front-end/
   package.json
...

Usage

Prerequirements

Note : Run react and nodejs local server in differnt terminal

Front-end Usage (PORT: 3000)

$ cd Front-end
$ yarn install
$ yarn start

// Deployment for Front-end app
$ yarn run build // this will compile the react code using webpack and generate a folder called docs in the root level
$ yarn start // this will run the files in docs, this behavior is exactly the same how gh-pages will run your static site

Back-end Usage (PORT: 5000)

Prepare your secret

Note : You need to add a TOKEN_SECRET & MongoDB URI in .env

// in the root level
$ echo "TOKEN_SECRET=YOUR_JWT_SECRET" >> ./Back-end/.env

Start

$ cd Back-end
$ yarn install
$ yarn dev

About

Developer Blog Using Express Back-end & React Front-end With Markdown Support.

https://react-blog.vigneshcodes.in/

License:MIT License


Languages

Language:JavaScript 94.3%Language:CSS 2.6%Language:HTML 2.1%Language:Dockerfile 0.6%Language:Shell 0.4%