Permalink
Browse files

switch to Django + ES

  • Loading branch information...
1 parent 23413b9 commit dfe2db128e628d6dd300385cc6e422e6e1bed57e @peterbe committed Jan 4, 2017
Showing with 11,328 additions and 12,691 deletions.
  1. +0 −6 .gitignore
  2. +13 −18 .travis.yml
  3. +7 −0 Dockerfile
  4. +0 −646 api.go
  5. +0 −20 authkeys.go
  6. +0 −78 authkeys_test.go
  7. 0 autocompeter/__init__.py
  8. 0 autocompeter/api/__init__.py
  9. +5 −0 autocompeter/api/apps.py
  10. 0 autocompeter/api/migrations/__init__.py
  11. 0 autocompeter/api/models.py
  12. +266 −0 autocompeter/api/tests.py
  13. +32 −0 autocompeter/api/urls.py
  14. +294 −0 autocompeter/api/views.py
  15. +179 −0 autocompeter/auth/views.py
  16. 0 autocompeter/authentication/__init__.py
  17. +9 −0 autocompeter/authentication/apps.py
  18. +8 −0 autocompeter/authentication/context_processors.py
  19. +17 −0 autocompeter/authentication/urls.py
  20. +179 −0 autocompeter/authentication/views.py
  21. +1 −0 autocompeter/main/__init__.py
  22. +11 −0 autocompeter/main/apps.py
  23. 0 autocompeter/main/management/__init__.py
  24. 0 autocompeter/main/management/commands/__init__.py
  25. +10 −0 autocompeter/main/management/commands/create-index.py
  26. +57 −0 autocompeter/main/migrations/0001_initial.py
  27. +24 −0 autocompeter/main/migrations/0002_key_user.py
  28. 0 autocompeter/main/migrations/__init__.py
  29. +28 −0 autocompeter/main/models.py
  30. +44 −0 autocompeter/main/search.py
  31. 0 {public → autocompeter/main/static/main}/css/bootstrap.css
  32. 0 {public → autocompeter/main/static/main}/css/bootstrap.min.css
  33. +169 −0 autocompeter/main/static/main/css/landing-page.css
  34. BIN {public → autocompeter/main/static/main}/img/banner-bg.jpg
  35. BIN {public → autocompeter/main/static/main}/img/dog.png
  36. BIN {public → autocompeter/main/static/main}/img/intro-bg.jpg
  37. BIN {public → autocompeter/main/static/main}/img/ipad.png
  38. BIN {public → autocompeter/main/static/main}/img/phones.png
  39. 0 {public → autocompeter/main/static/main}/js/bootstrap.js
  40. 0 {public → autocompeter/main/static/main}/js/bootstrap.min.js
  41. 0 {public → autocompeter/main/static/main}/js/jquery.js
  42. +142 −44 templates/index.tmpl → autocompeter/main/templates/main/home.html
  43. +12 −0 autocompeter/main/urls.py
  44. +95 −0 autocompeter/main/views.py
  45. +153 −0 autocompeter/settings.py
  46. +40 −0 autocompeter/static/autocompeter.css
  47. +455 −0 autocompeter/static/autocompeter.js
  48. +9 −0 autocompeter/static/autocompeter.min.css
  49. +2 −0 autocompeter/static/autocompeter.min.js
  50. BIN autocompeter/static/main/banner-bg.jpg
  51. +6,566 −0 autocompeter/static/main/css/bootstrap.css
  52. +5 −0 autocompeter/static/main/css/bootstrap.min.css
  53. +2 −8 {public → autocompeter/static/main}/css/landing-page.css
  54. BIN autocompeter/static/main/dog.png
  55. BIN autocompeter/static/main/img/banner-bg.jpg
  56. BIN autocompeter/static/main/img/dog.png
  57. BIN autocompeter/static/main/img/intro-bg.jpg
  58. BIN autocompeter/static/main/img/ipad.png
  59. BIN autocompeter/static/main/img/phones.png
  60. BIN autocompeter/static/main/intro-bg.jpg
  61. BIN autocompeter/static/main/ipad.png
  62. +2,306 −0 autocompeter/static/main/js/bootstrap.js
  63. +7 −0 autocompeter/static/main/js/bootstrap.min.js
  64. +4 −0 autocompeter/static/main/js/jquery.js
  65. BIN autocompeter/static/main/phones.png
  66. +29 −0 autocompeter/urls.py
  67. +16 −0 autocompeter/wsgi.py
  68. +12 −0 bin/travis/install.sh
  69. +5 −0 bin/travis/lint.sh
  70. +11 −0 bin/travis/setup.sh
  71. +12 −0 bin/travis/test.sh
  72. +3 −4 contribute.json
  73. +24 −0 docker-compose.yml
  74. +22 −0 manage.py
  75. +0 −26 public/README.md
  76. BIN public/examples/purecss/andrew-avatar.png
  77. +0 −191 public/examples/purecss/blog-old-ie.css
  78. +0 −175 public/examples/purecss/blog.css
  79. BIN public/examples/purecss/ericf-avatar.png
  80. +0 −7 public/examples/purecss/grids-responsive-min.css
  81. +0 −7 public/examples/purecss/grids-responsive-old-ie-min.css
  82. +0 −215 public/examples/purecss/index.html
  83. +0 −11 public/examples/purecss/pure-min.css
  84. BIN public/examples/purecss/reid-avatar.png
  85. BIN public/examples/purecss/tilo-avatar.png
  86. +0 −622 public/examples/ratchet/css/ratchet-theme-android.css
  87. +0 −9 public/examples/ratchet/css/ratchet-theme-android.min.css
  88. +0 −471 public/examples/ratchet/css/ratchet-theme-ios.css
  89. +0 −9 public/examples/ratchet/css/ratchet-theme-ios.min.css
  90. +0 −1,434 public/examples/ratchet/css/ratchet.css
  91. +0 −9 public/examples/ratchet/css/ratchet.min.css
  92. BIN public/examples/ratchet/fonts/ratchicons.eot
  93. +0 −61 public/examples/ratchet/fonts/ratchicons.svg
  94. BIN public/examples/ratchet/fonts/ratchicons.ttf
  95. BIN public/examples/ratchet/fonts/ratchicons.woff
  96. +0 −70 public/examples/ratchet/index.html
  97. +0 −944 public/examples/ratchet/js/ratchet.js
  98. +0 −10 public/examples/ratchet/js/ratchet.min.js
  99. +0 −151 public/examples/skeleton/css/custom.css
  100. +0 −427 public/examples/skeleton/css/normalize.css
  101. +0 −418 public/examples/skeleton/css/skeleton.css
  102. BIN public/examples/skeleton/images/favicon.png
  103. BIN public/examples/skeleton/images/iphone.png
  104. BIN public/examples/skeleton/images/placeholder.png
  105. BIN public/examples/skeleton/images/values-bg.jpg
  106. +0 −134 public/examples/skeleton/index.html
  107. +0 −1,672 public/font-awesome/css/font-awesome.css
  108. +0 −4 public/font-awesome/css/font-awesome.min.css
  109. BIN public/font-awesome/fonts/FontAwesome.otf
  110. BIN public/font-awesome/fonts/fontawesome-webfont.eot
  111. +0 −520 public/font-awesome/fonts/fontawesome-webfont.svg
  112. BIN public/font-awesome/fonts/fontawesome-webfont.ttf
  113. BIN public/font-awesome/fonts/fontawesome-webfont.woff
  114. +0 −16 public/font-awesome/less/bordered-pulled.less
  115. +0 −11 public/font-awesome/less/core.less
  116. +0 −6 public/font-awesome/less/fixed-width.less
  117. +0 −17 public/font-awesome/less/font-awesome.less
  118. +0 −552 public/font-awesome/less/icons.less
  119. +0 −13 public/font-awesome/less/larger.less
  120. +0 −19 public/font-awesome/less/list.less
  121. +0 −25 public/font-awesome/less/mixins.less
  122. +0 −14 public/font-awesome/less/path.less
  123. +0 −20 public/font-awesome/less/rotated-flipped.less
  124. +0 −29 public/font-awesome/less/spinning.less
  125. +0 −20 public/font-awesome/less/stacked.less
  126. +0 −561 public/font-awesome/less/variables.less
  127. +0 −16 public/font-awesome/scss/_bordered-pulled.scss
  128. +0 −11 public/font-awesome/scss/_core.scss
  129. +0 −6 public/font-awesome/scss/_fixed-width.scss
  130. +0 −552 public/font-awesome/scss/_icons.scss
  131. +0 −13 public/font-awesome/scss/_larger.scss
  132. +0 −19 public/font-awesome/scss/_list.scss
  133. +0 −25 public/font-awesome/scss/_mixins.scss
  134. +0 −14 public/font-awesome/scss/_path.scss
  135. +0 −20 public/font-awesome/scss/_rotated-flipped.scss
  136. +0 −29 public/font-awesome/scss/_spinning.scss
  137. +0 −20 public/font-awesome/scss/_stacked.scss
  138. +0 −561 public/font-awesome/scss/_variables.scss
  139. +0 −17 public/font-awesome/scss/font-awesome.scss
  140. BIN public/fonts/glyphicons-halflings-regular.eot
  141. +0 −288 public/fonts/glyphicons-halflings-regular.svg
  142. BIN public/fonts/glyphicons-halflings-regular.ttf
  143. BIN public/fonts/glyphicons-halflings-regular.woff
  144. BIN public/fonts/glyphicons-halflings-regular.woff2
  145. +43 −6 requirements.txt
  146. +0 −385 server.go
  147. +0 −260 server_test.go
  148. +0 −718 tests.py
  149. +0 −7 travis-e2e.sh
View
@@ -1,8 +1,2 @@
/TODO
-/site/
node_modules/
-cover.out
-gin-bin
-/server
-/autocompeter
-/run-dev-server.sh
View
@@ -1,23 +1,18 @@
-language: go
sudo: true
-go:
- - 1.4
- #- tip
-
-services:
-- redis-server
-
-env:
-- REDISDATABASE=8
-
+language: python
+python: 3.5
branches:
only:
- master
-
+addons:
+ apt:
+ packages:
+ - oracle-java8-set-default
+before_install:
+ - curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.deb && sudo dpkg -i --force-confnew elasticsearch-5.1.1.deb && sudo service elasticsearch start
+install: bin/travis/install.sh
+before_script:
+ - bin/travis/lint.sh
+ - bin/travis/setup.sh
script:
-- go test -v ./...
-- ./travis-e2e.sh
-
-notifications:
- email:
- on_success: never
+ - bin/travis/test.sh
View
@@ -0,0 +1,7 @@
+FROM python:3.5
+ENV PYTHONUNBUFFERED 1
+RUN mkdir /code
+WORKDIR /code
+ADD requirements.txt /code/
+RUN pip install -r requirements.txt
+ADD . /code/
Oops, something went wrong.

0 comments on commit dfe2db1

Please sign in to comment.