Wanderlust - a 3 tire web application

Wanderlust - a 3 tire web application

·

1 min read

Table of contents

No heading

No headings in the article.

  • 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