Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

How do I get started with testing this? #19

Closed
peterennis opened this issue Oct 9, 2017 · 7 comments
Closed

How do I get started with testing this? #19

peterennis opened this issue Oct 9, 2017 · 7 comments
Labels

Comments

@peterennis
Copy link
Contributor

I am new to using SQLite. What are the first steps to getting started?
When I know what I am doing I can provide a PR for the getting started doc that could also help others.
My initial goal is to investigate using SQLite with Ionic using promises/observables...

@gms1 gms1 added the question label Oct 9, 2017
@gms1
Copy link
Owner

gms1 commented Oct 9, 2017

I would recommend by cloning this repo and playing with the provided tests

  • install global dependencies
npm -g i gulp-cli
  • clone the repo and install dependencies
gms@work:~/tmp$ git clone git@github.com:gms1/node-sqlite3-orm.git
gms@work:~/tmp$ cd node-sqlite3-orm/
gms@work:~/tmp/node-sqlite3-orm$  npm i
  • build and run all tests
gms@work:~/tmp/node-sqlite3-orm$ gulp test
  • build and run a single tests
gms@work:~/tmp/node-sqlite3-orm$ gulp build
gms@work:~/tmp/node-sqlite3-orm$ ./node_modules/.bin/jasmine dist/spec/BaseDAO.spec.js
  • try to make changes to the tests to get familar with the code

thank you for your interest
Guenter

@gms1
Copy link
Owner

gms1 commented Oct 11, 2017

one thing I have forgotten to mention, the API-docs can be generated using "npm run typedoc"
see 'docs / typedoc / index.html' afterwards

@peterennis
Copy link
Contributor Author

peterennis commented Oct 12, 2017

Fixed in PR #22

It look like this live: https://github.com/peterennis/node-sqlite3-orm/blob/aedev/GETTING-STARTED.md

I will look into the docs next.

@peterennis
Copy link
Contributor Author

Updated getting started with doc generation

https://github.com/gms1/node-sqlite3-orm/pull/23/files

This PR: #23

@peterennis
Copy link
Contributor Author

Make line spacing consistent in src.

Fixed in #24

@peterennis
Copy link
Contributor Author

Not sure where the red x is from. All checks pass.
There was a Travis failure with white space that I fixed but it seems not to clear the error.

capture204

@gms1
Copy link
Owner

gms1 commented Oct 14, 2017

the mentioned error occurred because tslint found trailing whitespaces:
see
https://travis-ci.org/gms1/node-sqlite3-orm/builds/287828472

@gms1 gms1 closed this as completed Oct 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants