amrtgaber / aoe2-data-api

Fan made data api for Age of Empires II game

Home Page:https://aoe2-data-api.herokuapp.com/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AoE2 Data Api

Description

Api for getting data bout Age of Empires II game civilizations, ages, units, techs, and buildings.

Docs

Api documentation is hosted at https://aoe2-data-api.herokuapp.com/docs provided by NestJS and Swagger.

To see the docs during development run the project and navigate to localhost:4000/docs.

Prerequisites

  • node (preferably through nvm)
  • docker (for dev db only)

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# test coverage
$ npm run test:cov

Updating database

Seed data is generated through a fork of the aoe2techtree project.

https://github.com/amrtgaber/aoe2techtree

The scripts are in the data-conversion folder.

After running the scripts successfully, copy the files into prisma/seed-data to replace the files with the same names.

License

MIT licensed.


Age of Empires II © Microsoft Corporation. Age of Empires II Data Api was created under Microsoft's "Game Content Usage Rules" using assets from Age of Empires II and it is not endorsed by or affiliated with Microsoft.

About

Fan made data api for Age of Empires II game

https://aoe2-data-api.herokuapp.com/docs

License:MIT License


Languages

Language:TypeScript 99.8%Language:JavaScript 0.2%Language:Procfile 0.0%