- Web app to post Blogs using nodejs, MongoDB
- supports user Login/sginUp + auth
- You should be a user to post a blog
- require Nodejs
- require MongoDB either in your local or using Atlas
- nodejs
- use
sudo apt install npm
or you can use the Snap Store and search for node version that I used without any issues 17.8.0v - check your version
node -v && npm -v
- MongoDB
- use
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
you should get OK if you faced an issue usesudo apt-get install gnupg
then repate from 1 again - use
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
- use
sudo apt-get update
to reload a local package database - use
sudo apt-get install -y mongodb-org
Run MongoDB
- use
sudo systemctl start mongod
- use
sudo systemctl status mongod
if you faced an issue use sudo systemctl daemon-reload
to restart mongo
- cd ~/Blogging
- use
node .
- go to
localhost:4001