Skip to content

This example will retrieve 10 hotels in San Francisco, California.

Notifications You must be signed in to change notification settings

back4app/HotelsUSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Hotels in the USA

This project uses an Parse App created at Back4app, which has a free, public database connected from the Database Hub containing the Hotels in the USA to make a few queries and demonstrate data usage.

Use this App as you'd like. It is free to use and distribute.

Prerequisites

This program is writen in NodeJS, which is a Javascript runtime, therefore, familiarity with Javascript is required.

It will be necessary to use the Parse SDK for Javascript (Node.JS) to run this project. For your convenience, the Parse SDK for Javascript is already built in this project.

If you wish to reinstal it, the easiest way is to use the Node Package Manager.

If your system already hasNPM installed, just run this command:

$ npm install parse

All the documentation about the Javascript SDK canb e found in the Javascript Docs.

Running the program

To run the program, just run this command from the directory where the project was cloned/decompressed:

$ node index.js

Results of the program

This example will retrieve 10 hotels in San Francisco, California. The output will be:

Found 10 hotels with the parameters searched
        Hotel: Orchard Garden Hotel
                Address: 466 Bush St, San Francisco, CA 94108-3731
        Hotel: The Orchard Hotel
                Address: 665 Bush Street, San Francisco, CA 94108-3510
        Hotel: The Metro Hotel
                Address: 319 Divisadero St, San Francisco, CA 94117-2208
        Hotel: The Inn at Union Square - A Greystone Hotel
                Address: 440 Post St, San Francisco, CA 94102-1502
        Hotel: Fairmont Heritage Place, Ghirardelli Square
                Address: 900 North Point Street Suite D100, San Francisco, CA 94109-1192
        Hotel: Lodge at the Presidio
                Address: 105 Montgomery St Presidio of San Francisco, San Francisco, CA 94129-1718
        Hotel: Hotel Emblem San Francisco
                Address: 562 Sutter St, San Francisco, CA 94102-1102
        Hotel: Hotel Drisco Pacific Heights
                Address: 2901 Pacific Avenue, San Francisco, CA 94115-1011
        Hotel: Omni San Francisco Hotel
                Address: 500 California Street, San Francisco, CA 94104-1001
        Hotel: Stanford Court San Francisco
                Address: 905 California Street Nob Hill, San Francisco, CA 94108-2201

Free account without any limitations of functionalities

Back4app provides free accounts that does not have any limitation in functionalities. To create your account, go to Back4app and fill up the forms.

Up to the limit of 600 API requests per minute, enough for medium production environments and most development environments, there is no charge. Above that limit there are plans with distinct prices to meet all of your needs.

Using other Databases

Back4app and its users are constantly publishing new Databases in the Database Hub, all free for use and compatible with REST API and GraphQL.

Check the availability of Databases that might interest you, or publish your own databases that might interest other users.

The collaborative platform of the Database Hub help all Developers to speed the development process by having a fully working, completed database to start.

A few examples of available databases:

About

This example will retrieve 10 hotels in San Francisco, California.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published