Skip to content

Jedidiah-Solomon/J-Blog

Repository files navigation

J-blog😊😍😊

Stack -- NodeJs, Express, EJS & MongoDB Blog

Special thanks to RaddyBrand 1

j-blog.com

You need:

  • NodeJs
  • Database (MongoDB) Free Cluster

Create .env file

Create a .env file to store your credentials. Example below:

PORT=5000
MONGODB_URI=mongodb+srv://Jedybrown:<password>@cluster-nodejs-blog.cl4hvbg.mongodb.net/blog?retryWrites=true&w=majority&appName=Cluster-nodejs-blog
MONGODB_PASSWORD=<password>

JWT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Installation

To install and run this project - install dependencies using npm and then start your server:

$ npm install
$ npm run dev

You need:

NodeJs Database (MongoDB) Free Cluster

Create .env file

Create a .env file to store your credentials. Example below:

makefile

PORT=5000
MONGODB_URI=mongodb+srv://name:<password>@cluster-nodejs-blog.cl4hvbg.mongodb.net/blog?retryWrites=true&w=majority&appName=Cluster-nodejs-blog
MONGODB_PASSWORD=<password>
JWT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Installation

To install and run this project - install dependencies using npm and then start your server:

$ npm install
$ npm run dev

Deployment to Render

To deploy this application to Render from your GitHub repository, follow these steps:

Create a new service on Render:

Name: J-blog
Language: NodeJs
Branch: main
Region: Oregon (US West)
Root Directory: ./
Build Command: npm install
Start Command: node app.js

Add environment variables:

PORT=5000
MONGODB_URI=mongodb+srv://name:<password>@cluster-nodejs-blog.cl4hvbg.mongodb.net/blog?retryWrites=true&w=majority&appName=Cluster-nodejs-blog
MONGODB_PASSWORD=<password>
JWT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Deploy your application:

Once you have configured the service with the above settings and environment variables, Render will automatically deploy your application from the specified branch in your GitHub repository.

Website

jedidiahsolomon.com

Images

pic-1 pic-2 pic-3 pic-4 pic-5 pic-6 pic-7 pic-8 pic-9 pic-10 pic-11 pic-12

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published