Giter Site home page Giter Site logo

taskapp-back's Introduction

How to install mongo DB

1) first download from the official page the cominity server version
    https://www.mongodb.com/download-center/community
2) then extract the content from the tar file
    tar xzf mongodb-osx-ssl-x86_64.tgz
3) then move all the content to the folder 
    sudo mkdir /usr/local/mongodb
    sudo mv * /usr/local/mongodb
4) create the folder /data/db/
    sudo mkdir /data/db/
5) change the permissions over the directory:
    whoami
    sudo chown hectorcuellar /data/db
6) Add the all the paths on the enviroment variables
    cd
    open .bash_profile
    Edit the file and put the following lines:

    export MONGO_PATH=/usr/local/mongodb
    export PATH=$PATH:$MONGO_PATH/bin

    create the file .bash_profile if not exist with the command touch
    touch name_file

    once you put that lines refresh the file .bash_profile with the command source:
    source .bash_profile 

7) finally you have to execute the mongo daemon for run mongo on your machine
and then execute the mongo for open the terminal 

8) see the existing databases with the command 
 show dbs 
 use some_db
 show collections




taskapp-back's People

Contributors

alancantabrana 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.