Skip to content

A simple RESTful API to interact with a crunchbase dataset built with hapijs, mongodb and nanobox.

License

Notifications You must be signed in to change notification settings

m8r1x/nanobox-hapi-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nanobox-hapi-mongo

A simple RESTful API built with hapijs, mongodb and nanobox

Prerequisites

  • MongoDB
  • NodeJS (Version used == 8.7.0)

Running Tests

The project uses Code, Sinon and Lab for testing.

To run the tests:

$ yarn test

Start Server

Import some data into MongoDB from test/data.json or generate your own mockaroo or go all in and explore the crunchbase api

Run mongoimport -d crunchbase -c companies --file data.json --jsonArray

To start the server:

$ yarn start

The API uses jwt authentication so the Authorization header is required to access the data.

Using an app like Postman:

Check out the docs for more details

API docs

Visit localhost:11001/documentation to checkout documentation on a swaggerUI.

Contributing

  1. Fork the repo
  2. Edit the code and write tests to verify your feature or bugfix
  3. Open a pull request

License

MIT

About

A simple RESTful API to interact with a crunchbase dataset built with hapijs, mongodb and nanobox.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published