Giter VIP home page Giter VIP logo

apartment_finder's Introduction

Apartment Finder Rust Server

Running the server with cargo

You will need to have the Rust toolchain installed.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

To set up the database, run the db_migration.sql script in your local DB, and make sure the connection string in Rocket.toml matches your local settings.

Then, use cargo run in the root directory for a debug build, or cargo run --release for a production build (might be long compile times).

Using the Docker Container (no install of Rust required)

Building the image is very simple. All you need is to set the DB connection string in Rocket.toml to the correct settings for your local database.

Then, from the webserver directory of the project:

docker build --tag webserver:0.2.5 .

If you already compiled the Rust code with cargo, the build will go much more quickly if you run cargo clean before the build.

Using the Web Feature Editor

All menus are accessed through the context menu (right-click). There are different menus for clicks on the map directly, or on an existing feature.

When the label of a feature is blue, you are in text edit mode. Use "Enter" to confirm. To enter more than one label for a feature, separate the labels with commas (white space around commas will be ignored).

The other editing tools should be self-explanatory.

Doing Searches

Currently the search supported in the editor is quite basic - a search for an address returns any features that are associated with that longitude/latitude.

Apartment and building searches can be done, using any formats that Google Places Search understands. For example, "635 South Ellis Street, #22, Chandler, AZ" will find building #22 at that address, and "635 South Ellis Street, apt 1135, Chandler, AZ" will find an individual apartment.

The POST API for search supports any arbitrary combination of feature type, feature label, and geometry. Searches for "all gates in an area", "closest door to an apartment", etc. are only supported through POST requests, which is not supported in the editor search box.

Data Entry Speed

With very little experience with the editor, I was able to complete the map for "Stone Oaks" at "2450 W Pecos Rd, Chandler, AZ" in 35 minutes. This complex has approximately 180 units.

apartment_finder's People

Contributors

deneut avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.