|
Author |
Thread Statistics | Show CCP posts - 5 post(s) |
|
CCP FoxFour
C C P C C P Alliance
3915
|
Posted - 2015.02.04 16:01:23 -
[1] - Quote
Why... because why not? No really because I thought it would be fun to have something a bit more specific to work on. So here is the challenge: Build a static web application for browsing the EVE market using CREST.
- The application should only contact CREST, aside from loading libraries such as jQuery or Angular, and should not rely on any other services.
- Should show all items on the market.
- Should allow a user to see the items buy and sell information.
- Should be properly RESTful and follow links, sent proper accept headers, etc.
Things you will probably need:
My current idea on how I will try doing this:
- Load all the regions
- Load the market groups
- Build the tree structure out of that
- When a group is expanded check for types in that group and load them
- When a type is clicked load the market data for that type
Or something like that anyways is what I plan on trying to do. I am personally going to try and get something done this weekend. If anyone else decides to do something post your results here. :)
@CCP_FoxFour // Technical Designer // Team Size Matters
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
|
|
|
CCP FoxFour
C C P C C P Alliance
3916
|
Posted - 2015.02.04 20:33:31 -
[2] - Quote
SJ Astralana wrote:The EVE client has the benefit of SQL calls, but we as devs have to slog through each item It takes a couple minutes using parallel processing to simply load T1 and related materials for a single region.
I'll buy YOU a drink if you would please allow requesting more than one item per call. Eve-MarketData and Eve-Central both are WAY faster than CREST.
You're looking at this all wrong. You're looking at it as if building a service that needs all the information at once to do some kind of processing of that information. Please keep in mind CREST was built for allowing more clients access to TQ, not for building other services. For example DUST uses CREST and it doesn't take minutes to load the market. Your instinct to go straight to us having the benefit of SQL is also indicating how wrong you are looking at this. Instead of trying to prime all the information at once, as you are suggesting, start with two calls. One for the list of regions and one for the list of market groups. Then build the market tree from that and a selection for region. When someone clicks on a market group load the list of types for that group, again one call. Continue this until they click on a type and at that point load the buy and sell orders for that type for the region selected.
That is basically how the EVE client works as well. We only ever send to the client one types buy or sell orders at a time. The EVE and DUST client both do this. The only advantage the EVE client has is having the market groups store locally and knowing that you only get to see the region you are in.
This is exactly what CREST was built for and it performs this job fantastically. It just requires thinking about building a different kind of client.
@CCP_FoxFour // Technical Designer // Team Size Matters
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
|
|
|
CCP FoxFour
C C P C C P Alliance
3916
|
Posted - 2015.02.05 08:45:19 -
[3] - Quote
Kali Izia wrote:Steve Ronuken wrote:Already started working something up (Implicit flow for oauth as a tip. No need for the secret) Implicit is great if you're going fully client-side like your app is. But if you have the option of using a server, in my opinion the regular flow is definitely preferable. For something like a market browser where you're clicking around a lot and might have it open in the background while you're doing other stuff in-game or whatever, you'd probably hit the 20 minute expiry fairly easily.
You can still get the refresh token with implicit though I thought...
@CCP_FoxFour // Technical Designer // Team Size Matters
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
|
|
|
CCP FoxFour
C C P C C P Alliance
3916
|
Posted - 2015.02.05 11:13:14 -
[4] - Quote
Kali Izia wrote:CCP FoxFour wrote:Kali Izia wrote:Steve Ronuken wrote:Already started working something up (Implicit flow for oauth as a tip. No need for the secret) Implicit is great if you're going fully client-side like your app is. But if you have the option of using a server, in my opinion the regular flow is definitely preferable. For something like a market browser where you're clicking around a lot and might have it open in the background while you're doing other stuff in-game or whatever, you'd probably hit the 20 minute expiry fairly easily. You can still get the refresh token with implicit though I thought... As of the last time I checked, nope. The launcher even gets a 12 hour token to work around that.
You are correct. Derp.
@CCP_FoxFour // Technical Designer // Team Size Matters
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
|
|
|
CCP FoxFour
C C P C C P Alliance
3916
|
Posted - 2015.02.09 15:15:59 -
[5] - Quote
Leokokim wrote:Something i just noticed using those apps:
The market groups all show up with their German localized names (I'm from Germany). I am pretty confused though, as I use the English client (and have been doing so since 4y I think) and also switched the eveo website language to english.
Is there some way to change that?
What is your OS language set to?
@CCP_FoxFour // Technical Designer // Team Size Matters
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
|
|
|
|
|