Search code examples
cloud9-ide

Database support on Cloud 9


Does Cloud 9 support any databases? Can my app talk to a database? MongoDB, Sqlite... anything? If so, how do i set it up? I am willing to work with any database. I just want to persist some of my info into a database.


Solution

  • These days the workspaces are just Ubuntu VMs, so just follow the instructions on installing your favourite database on Ubuntu.

    E.g.

    • Postgres: sudo apt-get install postgresql postgresql-contrib
    • MongoDB:

      sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list sudo apt-get update sudo apt-get install mongodb-org

    • Sqlite: sudo apt-get install sqlite3 libsqlite3-dev