The-Parth / blogger-blog

Simple react blog

Home Page:https://blogger-techies.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blogger blog

A simple blog built with React.js and Express.js.

Installation

Install using git.

  git clone https://github.com/The-Parth/blogger-blog.git

Environment Variables

To run this project, you will only need to set one Environment Variable for MongoDB.

ATLAS_URI = MongoDB ATLAS_URI. You can also use any other Mongo host.

NODE_ENV = production // For production

Once backend is deployed, you will be needed to provide the URL in the host.js file in the src folder. This will be used by the frontend to make requests. Do not include a slash at the end of the url.

Deployment

Here all commands are to be executed from root "/"

Backend

To deploy the backend, first install all the dependencies for the backend.

Build

  cd BackEnd && npm install && cd ..

Now deploy with

Deploy

  node BackEnd/index.js

Frontend

Build

  npm install && npm run build 

Now the build folder should be created. Deploy using your frontend host or for local, just run

  npm install -g serve
  serve -s build

Demo

Backend might be down at times as it is on a free host.

https://blogger-techies.netlify.app/

Authors

About

Simple react blog

https://blogger-techies.netlify.app/


Languages

Language:JavaScript 95.2%Language:CSS 3.7%Language:HTML 1.1%