homologist / edozo Goto Github PK
View Code? Open in Web Editor NEWtest for edozo
test for edozo
This application stores property transactions (sale and lease). Each agency sends to us a csv file with the all the transactions they handled. Provided is a prototype application to implement our solution. SETUP: run `bundle install` in the main directory SPECS: Please review specs in spec directory. To run specs, use `rspec` TASK: There is a number of specs already prepared for you. Some are failing but most are not implemented. You need to implement 2 classes: 1. CsvImport - accepts the csv file and agency name and inserts the transaction and associated records into the database 2. Search - takes different parameters and returns transaction data The application already has a database set up - see `support/db_setup.rb` NOTES: - Do not spend more than 3 hours on this task, if any of the specs are problematic, describe the problem and move to the next one. - There is probably not enough time to implement everything. Please focus on what feels important, but try to do some work in both search and import module. - Please commit your work regularly. - Feel free to modify setup code if it helps, but please focus on the task at hand. - There is no need to implement any Rails endpoints etc - we want to focus on the behavior of import and search. - You can add your own specs to help you with the implementations - If time allows, you can expand on specification and introduce other functionality you feel would be useful. DISCUSSION POINTS: Let's imagine we want to launch it as Rails application provides an API with search: - could you use this code. What would have to change? - instead of importing CSV, our clients will upload it to their dropbox account. How would we implement that? Nearby properties should be found by distance (ie in radius of 1 mile) instead of by postcode. - How would you approach it? We have decided to change the storage from sqlite to MongoDB - Which parts of your code will be reused and which can change? Could you model the database differently? What would you change?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.