---
# System prepended metadata

title: Ruby(no Rails) + MongoDB installation
tags: [mongoDB, development, CodePraise, ruby]

---

# Ruby(no Rails) + MongoDB installation

## Prerequisites
- MongoDB instance : on localhost using default port, 27017 
    - installation see as following
- [Ruby MongoDB driver](https://docs.mongodb.com/ruby-driver/master/quick-start/)

## Windows WSL / Ubuntu 20.04 
- [Offical not Support](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/#platform-support): 
    - Windows Subsystem for Linux (WSL) - Unsupported
    - MongoDB does not support the Windows Subsystem for Linux (WSL).
- [Install Previous Version](https://stackoverflow.com/questions/62495999/installing-mongodb-in-wsl)
    - *Note : If you have already installed mongodb please remove all those before you install mongodb-org since it may cause some issues during installation* 
- Everytime Start the Service
    - `sudo service mongod start`
- could try docker?

## macOS intel

- Official : 
    - [Install mongo db](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/) (macOS 10.13 or later)
    - [Don't follow this](https://docs.mongodb.com/guides/server/install/) need to add PATH to shell's **rc** file, but not work :(
    
    
###### tags: `development` `ruby` `mongoDB` `CodePraise`