Home - PolyglotDevsLondon/setup GitHub Wiki
Pre-requisites
Dev enviroment
- Download X-code tools
- Download iTerm terminal (or any other preferred terminal)
- Install Homebrew (package manager)
Python
Follow the instructions on the Python Setup Wiki.
Rather strangely, python defaults to version 2.x, instead of version 3.x (which is the latest, and required to work with the latest Django). In order to avoid errors arising from forgetting to use python3, it may be helpful to alias python
to python3
. To do this, simply run:
alias python=python3
and then check you've successfully added the alias by just running alias
by itself.
Code Editors
Sublime
⬇️ Download
VS Code
⬇️ Download
Once setup, with your VS Code open do Shift + Cmd + p
which will bring up the Extensions install screen. In the extensions search find the extensions mentioned below and hit Install:
Extensions:
- Git Lens
- TODO Highlighter
- Spell Checker
Front End
Coming soon!
Git & Github
- Install Git
- Get an account on Github
- PM you username to Lili on Slack to be added to the repo & organisation.
- Make your contributions to this organisation public. This will ensure that any work you do is visible on Github as part of this project which is always great for recruiters/employers to see.
- Make sure your Git config is all setup, follow this guide
Tickets & Google Drive
Ping your email to Lili to be added to the Google Drive folder & Trello Please note, if you are inactive for more than 2 months your access will be removed. You can re-request access once you are active again.
Database
We will be using Postgres. Here's how to set it up for different environments
Mac OSX
Download and install Postgres using https://postgresapp.com/. Once you have installed click initialise You should see three databases yourusername postgres and template1
Run this in your terminal:
sudo mkdir -p /etc/paths.d &&
echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp
This will let you run psql command from anywhere. Either double click on once of the databases in postgresapp or go to bash and type
$ psql
You will see something similar to this:
psql (10.5)
Type "help" for help.
_username_=#
Create a new database called listings
# CREATE DATABASE listings;
# CREATE ROLE listings WITH LOGIN PASSWORD 'yourpassword';
# GRANT ALL PRIVILEGES ON DATABASE listings TO listings;
# ALTER USER listings CREATEDB;