Commit graph

77 commits

Author SHA1 Message Date
Paul Hallett
d5d55dad7f Autoformat entire project, tidy up makefile 2020-02-24 13:18:14 +13:00
Alessandro Pezzè
cb413c25cf refactor: remove comments 2020-01-26 12:38:15 +01:00
Alessandro Pezzè
3ee705ae25 feat: comment out throttling 2020-01-26 12:38:15 +01:00
Charles Marttinen
63b4f9040b chore: Configure PyLint and correct code formatting 2018-10-20 11:35:11 -04:00
Charles Marttinen
4df9920596 chore: Correct code formatting to appease linter 2018-10-20 11:35:11 -04:00
Charles Marttinen
8832c819e3 chore: Remove python2 compatibility code 2018-10-20 11:35:11 -04:00
Charles Marttinen
3d64938a3f chore: Upgrade to Python 3 and update Django to 2.0 2018-10-20 11:35:11 -04:00
Charles Marttinen
23ba8056ef chore: Update Django to 1.10 2018-10-20 11:35:11 -04:00
Charles Marttinen
ee96433e6d chore: Update Django to 1.9 2018-10-20 11:35:11 -04:00
Charles Marttinen
d25b66662e chore: Remove API v1 2018-10-18 23:18:36 -04:00
Charles Marttinen
76c2b58e4e fix: Remove old website and associated code
The pokeapi.co website has been rebuilt and moved to a separate
project, so the website in this project is obsolete.

This removes all files and code related to the website, including the
'alerts' and 'hits' apps (which managed website alerts and the hit
counter) and unused site assets (CSS, JS, images).
2018-10-18 23:18:36 -04:00
Charles Marttinen
d8483e9a67 fix: Remove unused apps from settings 2018-10-18 23:18:36 -04:00
Alessandro Pezzè
9203a0d286 Sun and moon data (#305)
* badges

* Added CSV from Veekun

* added sprites from Veekun website

* quick fixes for an Exception

* bumped dependencies version

* add comment on how to upgrade to Django 1.11

* added some reminds to caching, our official wrappers and the true cost of the server

* remove index.html from sprites

* update to conform django-rest-framework 3.3.0 guidelines

* lint
2017-10-21 13:21:23 +00:00
Paul Hallett
85dd999396 Add alerts model and UI (#252) 2016-08-13 08:24:56 +01:00
Alexandre Boucey
d771c293df Added Docker Compose support for production (#183)
* Added Docker Compose support for production

* Added rate limiting to nginx
2016-07-07 13:23:59 +01:00
Paul Hallett
c4b2d52682 Add throttle settings (#223)
* Add throttle settings

Proposed API rate limit throttling. This should work directly with redis.

* Update settings.py
2016-07-06 14:04:09 +01:00
Paul Hallett
15aae235b4 Update views.py 2016-06-01 09:41:48 +01:00
Alexandre Boucey
38a88634ce Improving docker support (#179)
Allow docker to reuse previous pip layer

Fixed newlines
2016-05-03 16:05:37 +01:00
Paul Hallett
a7fa867a7c fix if statements (#177) 2016-04-30 15:42:28 +01:00
Paul Hallett
eb5783697b Set up redis cache (#176) 2016-04-30 15:36:56 +01:00
Paul Hallett
422d98fff2 Optimisations (#174)
* removed all the things causing slow times on data

* fixup look sharp

* use ujson

* bep
2016-04-30 13:02:27 +01:00
Paul Hallett
489c1a700e Update cors headers regex (#168) 2016-04-23 14:37:43 +01:00
phalt
75259851a9 Added missing import 2016-04-22 11:30:02 +01:00
Paul Hallett
8c8f80d66c Set up stripe donation button (#158)
* Set up stripe donation button

* Add crsf_exempt import

* rebase and update
2016-04-22 10:55:42 +01:00
root
bd30096d43 version rollback 2016-03-07 10:54:51 +00:00
root
921493826c version rollback 2016-03-07 10:54:13 +00:00
phalt
4bbb7b0a44 final lints 2016-03-05 11:40:41 +00:00
Maxwell Friederichs
5357992688 Changed Dockerfile over to use postgres. Adding custom config for the Dockerfile. 2016-02-29 21:05:25 -06:00
Zane Adickes
ec58b95478 images implemented for pokmon, pokemon forms and items 2016-02-16 01:31:19 -05:00
Zane Adickes
396bbd45ae adding some images 2016-02-10 08:09:36 -05:00
Zane Adickes
399643aa87 get started 2016-02-09 23:11:37 -05:00
Zane Adickes
91e84b7079 reorganiztion and clean up. 2016-01-09 10:55:39 -05:00
Zane Adickes
b1302233aa still need to re-organize v2 docs and work on doc navigation 2016-01-07 08:20:10 -05:00
Zane Adickes
66370dad44 ui using django templates 2016-01-06 17:10:05 -05:00
Zane Adickes
f9e528dd38 cleanup. navigation between version uis 2016-01-01 20:05:39 -05:00
Zane Adickes
00408c89e2 home page try it out. contributors. started docs. 2016-01-01 16:48:41 -05:00
Zane Adickes
0fda377b8c new ui code in angular 2015-12-30 08:22:15 -05:00
Zane Adickes
2c33493741 Merge pull request #73 from zaneadix/docs
Docs
2015-12-08 13:07:41 -05:00
Benjamin Takacs
5e5854fb7b One function for each group of models¬
NOT TESTED YET! Buildscript has not finished yet (needed about 18h until now).

Made `data/v2/__init__.py` and `config/local.py` python3 compatible.

Writen helper functions because of repeating code:
  + `process_csv`
  + `build_generic`
useage demonstrated with `_build_languages`.

Writen `with_iter` for closing files automatical
when the processing has finished.

Writen for each group of models a function (named `build_`groupname)
and a function `build_all` which calls these functions.
2015-12-05 12:13:46 +01:00
Adickes
ef3ad99493 json payload test 2015-12-01 19:01:17 -05:00
Adickes
64a60daa25 start docs 2015-11-28 09:30:55 -05:00
Adickes
3d8e9a7649 tests now handling all convenience attributes in all apis 2015-11-26 02:18:35 +01:00
Adickes
1f480cedac tests covering all endpoints. working on adding some convenience attributes to api resources to help connect them two way style. tests will probably need some small tweaks 2015-11-15 22:29:30 -05:00
Adickes
75e39ba530 cleaned up the berry mess 2015-11-10 14:20:06 -05:00
Adickes
aa1d7d9939 fished serving almost all data (with the exception of machines and some csv files that didnt have data yet but have been updated in veekuns repo. TESTS STILL NEED TO BE DONE. 2015-11-08 16:26:02 -05:00
Adickes
c1f1f9ace7 apis for locations, location areas, encounters, encounter rates, characteristics, contests, super contests 2015-11-05 09:55:14 -05:00
Adickes
b099558de2 starting a few more api endpoints (locations and encounters) 2015-10-29 13:46:15 -04:00
Adickes
f3654c3458 half of api tests are done 2015-10-23 00:56:01 -04:00
Adickes
176802e474 starting tests 2015-10-18 19:01:33 -04:00
Adickes
df503e3424 About 80% of data is being served 2015-10-06 13:09:07 -04:00