Code Monkey home page Code Monkey logo

wsl2-env-databases's Introduction

Installing Databases on WSL2

Install SQLite

You’ll be using a couple of different databases as you move through the web development track. The default database that Ruby on Rails uses is SQLite.

Action Item

  1. Open the "Ubuntu" application using the "Start" menu
  2. Type sudo apt-get install sqlite3 and press <Enter>

Check Your Work

<iframe width="560" height="315" src="https://www.youtube.com/embed/k0Jfs9vsApY" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

If you were able to run those commands without any issues, continue below.

Install Postgres

We also frequently see that students want to deploy their apps to the hosting service Heroku. To do this, though, you will need a different relational database management system called PostgreSQL.

Action Item

  1. Type sudo apt-get install wget ca-certificates and press <Enter>
  2. Type wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - and press <Enter>
  3. Type sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' and press <Enter>
  4. Type sudo apt-get update and press <Enter>
  5. Type sudo apt-get install postgresql and press <Enter> (Note: this may take some time)

Check Your Work

<iframe width="560" height="315" src="https://www.youtube.com/embed/mFFX0Km0N-k" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

If you were able to run those commands without any issues, continue to the next lesson, Configuring GitHub and Flatiron Student Portal on WSL2.

wsl2-env-databases's People

Contributors

maxwellbenton avatar timothylevi avatar timothylevi-test avatar

Watchers

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