2.0.11 • Published 3 days ago

foxhound v2.0.11

Weekly downloads
2
License
MIT
Repository
github
Last release
3 days ago

FoxHound

The FoxHound javascript query generator, for node.js and the browser.

Getting Started

$ npm install foxhound --save

Then...

var foxhound = require('foxhound');
var my_awesome_query = foxhound.scope('Users').cap(20).generate().query.body;
console.log(my_awesome_query);

The default query dialect is english, so, node should output:

Please give me 20 of your Users.  Thank you!

This is not very useful for anything other than testing, so, we might want to change the dialect and try again:

var foxhound = require('foxhound');
var my_awesome_query = foxhound.scope('Users').cap(20).setDialect('MySQL').generate().query.body;
console.log(my_awesome_query);

Which now will output:

SELECT * FROM Users LIMIT 20;

Testing

$ npm test
$ npm run coverage

Docker Development Environment

  1. Run this command to build this image:
docker build ./ -t retold/foxhound:local

alternatively you can use npm to run this

npm run docker-dev-build-image
  1. Run this command to build the local container:
docker run -it --name foxhound-dev -p 127.0.0.1:12346:8080 -v "$PWD/.config:/home/coder/.config"  -v "$PWD:/home/coder/foxhound" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" retold/foxhound:local

alternatively you can use npm to run this

npm run docker-dev-run
  1. Go to http://localhost:12346/ in a web browser

  2. The password is "retold"

  3. Right now you (may) need to delete the node_modules folders and regenerate it for Linux.

2.0.11

3 days ago

2.0.9

9 months ago

2.0.10

9 months ago

1.0.43

9 months ago

2.0.5

10 months ago

2.0.4

10 months ago

2.0.7

10 months ago

2.0.6

10 months ago

2.0.8

10 months ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.40

2 years ago

1.0.42

2 years ago

1.0.41

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.34

2 years ago

1.0.31

3 years ago

1.0.30

5 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago