DOB Job Application Filing
This dataset contains all job applications submitted through the Borough Offices, through eFiling, or through the HUB, which have a "Latest Action Date" since January 1, 2000.
- javascript
- ExpressJs
- Heroku
- Mongoose/Mongo DB
- Cors
- Body-Parser
The following is the instructions in order:
- Fork and clone the repo.
- Use
npm init - Use
npm install - On a separate terminal window run
mongod - In another terminal window run
mongo - Run
node db/seed.js - After running it in console, you will see some messages. Once the messages stop press
Ctrl+C - Run
node db/populate.js - After 40 seconds use
Ctrl+Cto exit out of the file. - Run
nodemon index.jsto activate the app - In your browser go to localhost.com:8080/
Main App: https://whispering-bayou-30290.herokuapp.com/api/
to show all the properties: https://whispering-bayou-30290.herokuapp.com/api/property/
to search by city: (insert city at the end) https://whispering-bayou-30290.herokuapp.com/api/property/city/
to search by address: (insert address at the end) https://whispering-bayou-30290.herokuapp.com/api/property/address/
to search by streetnumber: (insert address at the end) https://whispering-bayou-30290.herokuapp.com/api/property/streetnumber/
to search by borough: (insert borough at the end) https://whispering-bayou-30290.herokuapp.com/api/property/borough/
Property to insert a new document: https://whispering-bayou-30290.herokuapp.com/api/property/new
Property to update a document use the _id: https://whispering-bayou-30290.herokuapp.com/api/property/update/
Property to delete a document use the _id: https://whispering-bayou-30290.herokuapp.com/api/property/delete/
Shows all the contractors https://whispering-bayou-30290.herokuapp.com/api/contractor
Search by last name: (insert name at the end) https://whispering-bayou-30290.herokuapp.com/api/contractor/name/
Contractor to insert a new document: https://whispering-bayou-30290.herokuapp.com/api/contractor/new
Contractor to update a document use the _id https://whispering-bayou-30290.herokuapp.com/api/contractor/update/
Contractor to delete a document use the _id https://whispering-bayou-30290.herokuapp.com/api/contractor/delete/
lists and shows owner, contractor, properties by jobId https://whispering-bayou-30290.herokuapp.com/api/job/
Search for jobs by JobId: (insert a numerical value for the jobId) https://whispering-bayou-30290.herokuapp.com/api/job/id/
Shows all the property owners https://whispering-bayou-30290.herokuapp.com/api/owner
Search by last name: (insert name at the end) https://whispering-bayou-30290.herokuapp.com/api/owner/name/
Owner to insert a new document: https://whispering-bayou-30290.herokuapp.com/api/owner/new
Owner to update a document use the _id https://whispering-bayou-30290.herokuapp.com/api/owner/update/
Owner to delete a document use the _id https://whispering-bayou-30290.herokuapp.com/api/owner/delete/