⚠️ Website isn't mobile friendly and for best experience use Google Chrome.
- Frontend : Javascript, React.js
- Styling : Ant Design, Custom Css
- Backend : Javaxcript, Node.js with Express framework
- Database : MongoDB
Before running app locally make sure that you install following things:
- Nodejs with npm or yarn with following version installed : npm >= 6.14.15 with node >= 14.17.6
- MongoDB Atlas as database.
$ https://github.com/pemba1s1/blog-man.git
Install both client and server dependencies
# Install dependencies for server
$ npm install
# Install dependencies for client
$ npm run install-client
-
Create
.env
file in project root dir$ touch .env
-
Enter your MongoDB Atlas Connection String in MONGO_URI
-
Enter your Secret Key in JWT_SECRET
-
Enter JWT_LIFELINE
Now you can run the application by :
# Run the Express server only
$ npm start
# Run the React client only
$ cd client && npm start
# Server runs on http://localhost:5000 and client on http://localhost:3000
There is a Heroku post build script so that you do not have to compile your React frontend manually, it is done on the server. Simply push to Heroku and it will build and load the client index.html page
Copyright © 2021 Pemba Norsang Sherpa.
This project is MIT licensed.