Wanderlust - a 3 tire web application

Akash C MAkash C M
1 min read

Table of contents

  • clone the repo

  • Run the following commands so that you can use npm

      sudo apt update
      sudo apt install nodejs
      node -v
      sudo apt install npm
    
  • now npm i will work

  • Install MongoDB

      sudo apt-get install gnupg curl
      curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
         sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \
         --dearmor
      echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
      sudo apt-get update
      sudo apt-get install -y mongodb-org
      sudo systemctl start mongod
    

    to check if it is installed run the command mongosh

  • import some data

    mongoimport --db wanderlust --collection posts --file ./data/sample_posts.json --jsonArray

  •   npm start
    
0
Subscribe to my newsletter

Read articles from Akash C M directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Akash C M
Akash C M

Empowering community via open source and education