The best way to learn a new tool is through resolving challanges and getting the hands dirty.
This repository is a "test driven approach" over the amazing SQL Fundamentals from Tyler Clark course at eggheadio.
We will use Node.js, Jest and pg
to handle all SQL queries. This is an easier approach for JavaScript developers since you can oquestrate automatic table drop or insertions.
You need Node.js, npm or yarn (I use yarn, so the repository has a yarn.lock file), a running PostgreSQL server and basic knowledge of JavaScript to handle the test files.
- Lessions contains all lessions. Each of them are a test file that contains stuff from the Tyler lession.
- Queries contains some useful queries that are used during the tests.
- Utils contains all util files. You should not use this directory.
First install all dependencies using npm or yarn, then run:
Using npm
$ npm run test
Using yarn
$ yarn test
By default, all tests will run in watch mode sequentially.
The main
branch contains the exercises and all tests are marked as todo. To view the final version with all challanges done, go checkout to the branch final
.