DEPRECATED REPO SEE https://github.com/jerkeeler/aoestats-redux-issues
aoestats.io is relaunched! Head over to the other repo to report any issues and see project planning.
This is the frontend for aoestats.io. The entire site is a single page app written using React and GatsbyJS. This allows for the ultimate flexibility in user performance and SEO. I've also opt'd to make this a client only application in order to reduce hosting cost and provide a better experience for overseas users by distributing all static files on a CDN. Right now host is done on Netlify, however I've thought about switching to Vercel for unlimited bandwidth.
In order to develop this application you will need a postgres database setup. View the Database Schema section for what the DB should like.
To set up your dev environment:
- Ensure that you have NodeJS at least version 12
- I would recommend using nvm to manage your node versions
- Clone this repo
- Copy .env.example to .env and fill in the values appropriately for your DB
- Run
npm i
- Run
npm run develop
- Visit http://localhost:8001 to view the
Your postgres database must have the following tables:
- de_civilizationstats
- de_filter
- de_mapstats
- de_match
- de_matchplayer
- de_playerprofile
The schemas for these tables are still private, but will be released in due order, when I have APIs to expose this data directly.
To deploy this:
- Install the netlify cli and set it up
- Link your local repo with your netlify project
- Run
npm run deploy
to make a test deploy, verify everything looks good - Run
npm run deploy:prod
to deploy to production