This is my personal blog site coded with express nextjs and mongodb(for database). You can use this too I will document to you how to run it.
- Supports markdown with a really good text editor and a lot of features
- Admin login with auth key system allows only you to login and write blogs and manage them
- Decent UI
- And many more!
- Clone this repository
- Open two terminals and navigate to the backend folder and client folder
- After that in the client folder go to src/variables and open the vars.js file and edit the "BACKEND_URL" to your own backend url (if it is local host it should be http://localhost:7060) make sure you will not add a '/' at the end
- After that in the backend at to env variables one called
AUTHORIZATION_KEY
which will be any strong secure string of text you like andMONGODB_URI
which will be your MONGODB database URI - then in backend and client folder run
node index.js
andnpm run dev
respectively.
- You might need to change some meta data and text content in the root folder because they have my name in it.
- For production use I recommend you to use https://vercel.com for hosting and they have a free tier