Coder Social home page Coder Social logo

blog-website's Introduction

Blog Website 📝📌

Project By Hitik Saini

A node.js coded website for your personal/community blog. This is just a prototype for a sample Blog Website you will need to re-design as per your choice.

contributions welcome

Prerequisite

Install latest version of nodejs & mongoDB(database) into your PC for this to work. I have explained the installation process below refer to it and when you're done:

You now just need to open terminal and write these commands:

  • git clone https://github.com/hitiksaini/Blog-Website.git

  • navigate to where you downloaded the repository and install all the requirements- npm install
  • node app.js

If all goes well and you configure all the required modules correctly, this will run the whole node.js coded project and you will see the blog website on your local servers(https://localhost:3000/)

Installation Guide: Node.js | Express.js | MongoDB

Node.js on Windows : Download

Installation Steps

  • Download the Windows installer from the Nodes.js® website
  • Choose the LTS version that’s shown on the left.
  • Run the installer (the .msi file you downloaded in the previous step.)
  • Follow the prompts in the installer (Accept the license agreement, click the NEXT button a bunch of times and accept the default installation settings).
  • Restart your computer. You won’t be able to run Node.js® until you restart your computer.
  • Confirm that Node has been installed successfully on your computer by opening a Hyper terminal and typing in the commands

node --version

You should see the version of node you just installed.

Node.js on Mac : Download

Installation Steps

  • Download the Mac installer from the Nodes.js® website.
  • Choose the LTS version that’s shown on the left.
  • Run the installer (double-click on the .pkg file you downloaded in the previous step.)
  • NOTE: If you are running macOS Catalina 10.15, you might get a warning pop up
  • To solve this issue, just right click (hold down the control key on the keyboard and click) on the .pkg file and select "Open With" and then select "Installer (default)".
  • Follow the prompts in the installer (Accept the license agreement, click the NEXT button a bunch of times and accept the default installation settings).
  • Confirm that node has been installed successfully by opening a Hyper terminal and entering the command

node --version

You should see the version of node you have just installed.

Express is a framework for Node.js it can be used by using npm package.

npm install express

MongoDB Installation

Download the msi file based on your platform(windows, mac, linux etc) Download

Install

  • Select the latest version and click download.
  • After downloding the file double click it, and install it in complete mode.
  • Note the data directory I recommend you not to change and keep it default.
  • Uncheck Install mongodb compass, we don't need it for now.
  • Click Install now.

Configure

After successfully installing the latest version you need to configure the database to use it.

  • Navigate to your C:// drive or /home in linux
  • Create a folder and name it "data" (make sure to name it exactly)
  • Now make another folder inside this folder named "db" (make sure to name it exactly) The path should now appear like this:

C:\data\db

Now set alias to your database based on your database directory in your C drive.

  • cd ~
  • touch .bash_profile
  • now open this bash file and set alias (mongo = "just paste the directory")

Here is the official document which guide you step by step for installing mongoDB locally. Refer to this: https://docs.mongodb.com/guides/server/install/

You can always contact for any help😉

blog-website's People

Contributors

hitiksaini avatar nicoladeastra avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.