Skip to content
/ ws_sql Public

An intro to using an SQL database with Node.js.

Notifications You must be signed in to change notification settings

portsoc/ws_sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ws_sql

An intro to using an SQL database with Node.js.

See also the examples/README.md file for more details.

Running Tests

We continue to use QUnit to define tests that you should attempt to complete.
The difference now is that there is no browser – you must install the source code and the test framework and then run the tests from the command line:

  1. To download the code, either use git (the simplest option):
git clone https://github.com/portsoc/ws_sql.git
cd ws_sql

or download and unpack the zip which on linux can be achieved using

wget https://github.com/portsoc/ws_sql/archive/master.zip

then

unzip master.zip
cd ws_sql-master
  1. To download the QUnit files (and any libraries it uses, which you need to do before the first run of tests, but just the once) type:
npm install
  1. Inside test.js you will find helpful comments that tell you what the tests expect.

  2. Run the tests by typing:

npm test

If the tests fail to finish on their own (especially possible before you implement shutdown), press ctrl-c to stop the script.

Git: A recommendation

If at all possible, we recommend you use git to download code rather than zips of a repository. This is prefereable because if the repo is updated, then syncing those changes requires just one command (git pull) and usually any merging can be done automatically. Git is very powerful and we heartily encourages you to become familiar with it.

About

An intro to using an SQL database with Node.js.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published