Queryjane - Development Update - Country, State and City features.

in #utopian-io6 years ago

Repository
https://github.com/augustakingfoundation/queryjane_app/

QueryJane is a web application developed with Django that allows to connect with companies and experts in different sectors of the cannabis industry. Beta version is available [here](https://queryjane.net/).


Screen Shot 2018-08-05 at 2.09.42 PM.png

Initially, We were using the Google geocode API to populate the countries, states and cities databases. We were generating that data according to the users location. It's very important to us to have a very well structured database for place and location data, it allow us the make very specific queries, and it's important to offer very well filtered information.

Recently, the Geocode service terms were updated. And now we can't use it in the project. For this reason, we have changed the way in that it works.

New features

Platform administrators can load States and Cities from .xls file.

In order to solve the problem caused by the change in the term of use of the Geocode service, we have implemented a new way to create the states and cities database. Now, platform administrators can upload an excel file with a list of states and cities of a specific country.

That means that now, users can only register companies in specific countries with pre-loaded information about states and cities. That's good, because it will allow us create a legal frame more focussed with the law in some specific countries. Cannabis is a complicated topic in a lot of countries yet. That will let us to create visibility ads for a more particular group of people.

Now, Platform administrators can find this page in their settings dashboard:


Screen Shot 2018-10-15 at 3.44.46 PM.png

Here, platform administrators can upload a group of state-city elements for a specific country. This form accepts a .xls file with the information, and the city and state instances are created for the country specified in the "country code" field.

The .xls file must have a column with the states names, and a column with the city names. I have created all states and cities for Colombia and US. I'm hope to find .xls files with all the states and cities of Uruguay, Canada and México, countries with special legal improvements around the cannabis industry. We must to update this information in the application homepage.

Previously, in the company form, there was a button to get user location, and in this way, the country-state-city instances were created. Now, User can create companies only in Colombia and USA (Per now, we have to find reliable databases about states and cities to add another country).

So, the previous autocomplete field was changed by three select fields in the company form. Country, state and city. There are AJAX requests that update the state field when the country select is changed, and AJAX requests that update the city field when the state select is changed. Now, that select field don't look cool, but @cunigarro will take care of that.


ezgif.com-video-to-gif.gif

In this way, we can create very specific location queries. This new feature not only affects the company create form. The profile form and the job offer form were changed too.

Now, I will be searching for other database to upload. There are just some minor features that we need to fix yet, so we will be working on it as fast as we can.


GitHub Account

https://github.com/aaquirogal
Pull request



Screen Shot 2018-08-05 at 4.15.14 PM.png

How to contribute

QueryJane has been developed using the Django framework. You can fork the project, and run it locally is very easy. Follow the steps described in the open source repository installation guide. The project has been configured using Docker. you only need to install Docker and follow these steps.

Future work.

We have pending some administrative requirements, so, we will be working on it. There are still some final features in the "TO DO" list in our Trello board.

Take a look to our public trello board. This is the easiest way to know our roadmap.

If you want to contribute, please join my Discord

Have happy days ✌

Sort:  

Thanks for the contribution, @kit.andres! Looks like a good change and it makes a lot more sense to me to do it this way. Weed is definitely a complicated subject (I am from the Netherlands so I would know) so hopefully this helps make it easier to handle for you and the people signing up!

Looking at your JavaScript code I would recommend using let and const over var, but considering my JavaScript experience definitely take this with a grain of salt. Other than that everything looks high quality as always, great job!


Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you for your review, @amosbastian!

So far this week you've reviewed 17 contributions. Keep up the good work!

Hi @kit.andres!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Congratulations @kit.andres! You have received a personal award!

1 Year on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard:

SteemitBoard Ranking update - Resteem and Resteemed added

Support SteemitBoard's project! Vote for its witness and get one more award!

Hey, @kit.andres!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.31
TRX 0.12
JST 0.033
BTC 64605.91
ETH 3159.61
USDT 1.00
SBD 4.11