Coder Social home page Coder Social logo

aalises / age-of-empires-ii-api Goto Github PK

View Code? Open in Web Editor NEW
115.0 115.0 30.0 140 KB

API for Age of Empires II Built with Flask-RESTFul + SQLAlchemy

Home Page: https://age-of-empires-2-api.herokuapp.com

License: BSD 3-Clause "New" or "Revised" License

Python 99.65% Dockerfile 0.35%

age-of-empires-ii-api's Introduction

Hi there ๐Ÿ‘‹, I am Albert

  • ๐Ÿ”ญ Iโ€™m currently working as an Engineering Manager at Oliva Health where I was the founding engineer, previously Technical Lead at Kiwi.com
  • ๐Ÿ”† Currently living in Barcelona
  • ๐Ÿฅ MSc. in Computational Biomedical Engineering / BSc. in Telecommunications Engineering
  • ๐ŸŒฑ Learning Golang and Rust
  • ๐Ÿ“ซ How to reach me: add me on LinkedIn or send me an email or some kimchi ๐Ÿœ
  • ๐Ÿ˜„ Pronouns: He/him
  • โšก Fun fact: I have played synths and bass in several bands, currently in The Zephyr Bones ๐ŸŒŠ
  • ๐Ÿ‘จโ€๐Ÿณ Ah, and I cook a mean vindaloo curry!

BTW, Here's a Spotify playlist of all the songs I have been part of! ๐ŸŽน ๐ŸŽธ

Github Stats

age-of-empires-ii-api's People

Contributors

aalises avatar bitigchi avatar nicgobbi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

age-of-empires-ii-api's Issues

Should data be updated manually in csv files or we have an API we can refer to and get latest data?

Hey,

I really like the structure of the data provided from the API and I could see few things are not updated with regards to the latest patches. Just wanted to know if we need to manually modify the CSV when changes are pushed as patches or did you use any API to actually get the data and format it in this way?

Im trying to build a quick Tech Tree app ๐Ÿคท so just wanted to know how data would be updated here so I can use it.

Also, really cool feature I like is the applies_to and the develops_in properties. Its good to have those extra pointers but again, was that derived from any source?

Can't access API from CodeSandbox using Axios

I'm trying to use this API to make a simple app in React and TS to show AOEII civilizations. For this purpose I'm using Axios to fetch data, but I can't make it work. I can fetch the data from Postman, Curl, Chrome (pasting the GET url in the search bar) and when I try to make a request from my CodeSandbox App, It throws a Network Error, addressing there's a CORS policy blocking my request, but then how am I capable of fetching that particular data from Chrome, Postman and Curl then? Postman doesn't help either by not telling me which headers it uses to send the request.

I'm getting a 502 Network Error that looks like this:

/s/youthful-browser-mx5ix?file=/src/App.tsx:307-319:1 Access to XMLHttpRequest at 'https://zqixi-lsp.sse.codesandbox.io/socket.io/?type=go-to-definition&EIO=3&transport=polling&t=NTzf459' from origin 'https://codesandbox.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Incorrect Model for Structure

grafik

The Model in the documentation says there is a description for Structure but in the API there is no descprition given.

Incorrect Model for Civilization

Screen Shot 2019-12-14 at 4 45 36 PM

Issue

let unique_unit: String
let unique_tech: String

Should be

let unique_unit: [String]
let unique_tech: [String]

Correct Model

struct Civilization: Codable {
    let id: Int
    let name: String
    let expansion: String
    let army_type: String
    let unique_unit: [String]
    let unique_tech: [String]
    let team_bonus: String
    let civilization_bonus: [String]
}

Free hosting idea

From the API spec, it appears it only supports GET all records, or one record by type. Therefore, this dataset could be traversed and all possible queries could be written as JSON files. Then, using Github pages or Cloudflare pages, you could serve all these JSON files for free on a GH/CF domain, or on a custom domain you provide.

Also, if the clients of this data are only web browsers, then you could use this strategy https://phiresky.github.io/blog/2021/hosting-sqlite-databases-on-github-pages/ to async query a static hosted (free) SQLite DB

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.