A simple blog built with React.js and Express.js.
Install using git.
git clone https://github.com/The-Parth/blogger-blog.git
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.
To deploy the backend, first install all the dependencies for the backend.
cd BackEnd && npm install && cd ..
Now deploy with
node BackEnd/index.js
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
Backend might be down at times as it is on a free host.