Coder Social home page Coder Social logo

wevote / wevoteserver Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 383.0 94.95 MB

We Vote's API application server written in Django/Python. Election data pulled from many sources, used by https://github.com/wevote/WebApp and https://github.com/wevote/WeVoteCordova and https://github.com/wevote/Campaigns.

Home Page: https://api.wevoteusa.org

License: MIT License

CSS 0.02% HTML 12.12% Python 87.66% Shell 0.04% JavaScript 0.16% Procfile 0.01%

wevoteserver's People

Contributors

abdulrahimq avatar avanijadeja avatar bharathdn avatar brandta-1 avatar dalemcgrew avatar dependabot[bot] avatar eayoungs avatar eduardo445 avatar farid-amirli avatar fdiazq avatar fi0rini avatar gknorman avatar hesamshayegan avatar irascible avatar jainanisha90 avatar jangsoo avatar josephevans avatar nicogreenarry avatar nirvanabear avatar nyette avatar pbnjcub avatar pertrai1 avatar sailingsteve avatar smcvey7 avatar snyk-bot avatar stilwellmg avatar sunnykarim avatar tejasaditya avatar udii avatar upluke 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

Watchers

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

wevoteserver's Issues

Get Base UI implemented

Started working on the main menu, sub menu, body base, and footer for the base skeleton of the application.

Tablet HTML UI

Put together the view of the front page for the tablet size factor

Repo Python/Django Cleanup

The cleanup and organization of this cookie cutter can be cleaned up to make it enhanced for the application. All of the client side code will live in the WebAppPublic directory - or whatever this will be renamed (most of the time called public).

Dale mentioned someone who could be of help to handle this.

Refactor Components

The components are starters that need to have them removed or changed to reflect the app

Upgrade to Python 3.x from 2.x

Verify there aren't any issues with moving from python 2.x to python 3.x. I don't know why we started with python 2.x, but there is no reason to not be on the latest version.

Run Server Output Error

npm run dev-server

> [email protected] dev-server /home/pertrai1/Repos/WeVoteServer/web_app
> webpack-dev-server --config webpack-dev-server.config.js --progress --colors --port 2992 --inline

 70% 1/1 build moduleshttp://localhost:2992/
webpack result is served from http://localhost:2992/_assets/
content is served from /home/pertrai1/Repos/WeVoteServer/web_app
Hash: 3c883a5c38511797f210  
Version: webpack 1.12.2
Time: 7287ms
  Asset     Size  Chunks             Chunk Names
main.js  1.34 MB       0  [emitted]  main
   1.js  4.67 kB       1  [emitted]  
   2.js  7.58 kB       2  [emitted]  
chunk    {0} main.js (main) 1.12 MB [rendered]
    [0] multi main 40 bytes {0} [built]
    [1] (webpack)-dev-server/client?http://localhost:2992 2.14 kB {0} [built]
    [2] (webpack)/~/node-libs-browser/~/url/url.js 22.3 kB {0} [built]
    [3] (webpack)/~/node-libs-browser/~/punycode/punycode.js 14.6 kB {0} [built]
    [4] (webpack)/buildin/module.js 251 bytes {0} [built]
    [5] (webpack)/~/node-libs-browser/~/url/~/querystring/index.js 127 bytes {0} [built]
    [6] (webpack)/~/node-libs-browser/~/url/~/querystring/decode.js 2.4 kB {0} [built]
    [7] (webpack)/~/node-libs-browser/~/url/~/querystring/encode.js 2.09 kB {0} [built]
    [8] (webpack)-dev-server/~/socket.io-client/index.js 37 bytes {0} [built]
    [9] (webpack)-dev-server/~/socket.io-client/lib/index.js 1.5 kB {0} [built]
   [10] (webpack)-dev-server/~/socket.io-client/lib/url.js 1.53 kB {0} [built]
   [11] (webpack)-dev-server/~/socket.io-client/~/parseuri/index.js 690 bytes {0} [built]
   [12] (webpack)-dev-server/~/socket.io-client/~/debug/debug.js 2.46 kB {0} [built]
   [13] (webpack)-dev-server/~/socket.io-client/~/socket.io-parser/index.js 7.63 kB {0} [built]
   [14] (webpack)-dev-server/~/socket.io-client/~/socket.io-parser/~/json3/lib/json3.js 40.1 kB {0} [built]
   [15] (webpack)/buildin/amd-options.js 43 bytes {0} [built]
   [16] (webpack)-dev-server/~/socket.io-client/~/socket.io-parser/~/isarray/index.js 120 bytes {0} [built]
   [17] (webpack)-dev-server/~/socket.io-client/~/component-emitter/index.js 3 kB {0} [built]
   [18] (webpack)-dev-server/~/socket.io-client/~/socket.io-parser/binary.js 3.84 kB {0} [built]
   [19] (webpack)-dev-server/~/socket.io-client/~/socket.io-parser/is-buffer.js 252 bytes {0} [built]
   [20] (webpack)-dev-server/~/socket.io-client/lib/manager.js 11 kB {0} [built]
   [21] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/index.js 38 bytes {0} [built]
   [22] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/lib/index.js 140 bytes {0} [built]
   [23] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/lib/socket.js 16.9 kB {0} [built]
   [24] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/lib/transports/index.js 1.08 kB {0} [built]
   [25] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/lib/xmlhttprequest.js 1.16 kB {0} [built]
   [26] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/has-cors/index.js 458 bytes {0} [built]
   [27] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/has-cors/~/global/index.js 257 bytes {0} [built]
   [28] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/lib/transports/polling-xhr.js 7.92 kB {0} [built]
   [29] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/lib/transports/polling.js 4.85 kB {0} [built]
   [30] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/lib/transport.js 2.74 kB {0} [built]
   [31] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/engine.io-parser/lib/browser.js 14.4 kB {0} [built]
   [32] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/engine.io-parser/lib/keys.js 297 bytes {0} [built]
   [33] (webpack)-dev-server/~/socket.io-client/~/has-binary/index.js 1.08 kB {0} [built]
   [34] (webpack)-dev-server/~/socket.io-client/~/has-binary/~/isarray/index.js 120 bytes {0} [built]
   [35] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/engine.io-parser/~/arraybuffer.slice/index.js 725 bytes {0} [built]
   [36] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/engine.io-parser/~/base64-arraybuffer/lib/base64-arraybuffer.js 1.7 kB {0} [built]
   [37] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/engine.io-parser/~/after/index.js 685 bytes {0} [built]
   [38] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/engine.io-parser/~/utf8/utf8.js 6.38 kB {0} [built]
   [39] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/engine.io-parser/~/blob/index.js 2.2 kB {0} [built]
   [40] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/parseqs/index.js 708 bytes {0} [built]
   [41] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/component-inherit/index.js 146 bytes {0} [built]
   [42] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/debug/browser.js 3.28 kB {0} [built]
   [43] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/debug/debug.js 4.1 kB {0} [built]
   [44] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/debug/~/ms/index.js 2.02 kB {0} [built]
   [45] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/lib/transports/polling-jsonp.js 4.82 kB {0} [built]
   [46] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/lib/transports/websocket.js 4.57 kB {0} [built]
   [47] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/browser.js 831 bytes {0} [built]
   [48] (webpack)-dev-server/~/socket.io-client/~/indexof/index.js 199 bytes {0} [built]
   [49] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/parseuri/index.js 1.19 kB {0} [built]
   [50] (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/parsejson/index.js 842 bytes {0} [built]
   [51] (webpack)-dev-server/~/socket.io-client/lib/socket.js 6.99 kB {0} [built]
   [52] (webpack)-dev-server/~/socket.io-client/~/to-array/index.js 216 bytes {0} [built]
   [53] (webpack)-dev-server/~/socket.io-client/lib/on.js 370 bytes {0} [built]
   [54] (webpack)-dev-server/~/socket.io-client/~/component-bind/index.js 474 bytes {0} [built]
   [55] (webpack)-dev-server/~/socket.io-client/~/object-component/index.js 1.18 kB {0} [built]
   [56] (webpack)-dev-server/~/socket.io-client/~/backo2/index.js 1.4 kB {0} [built]
   [57] (webpack)-dev-server/~/strip-ansi/index.js 161 bytes {0} [built]
   [58] (webpack)-dev-server/~/strip-ansi/~/ansi-regex/index.js 135 bytes {0} [built]
   [59] ./config/mainApp.jsx 584 bytes {0} [built]
   [60] ./app/mainRoutes.jsx 3.21 kB {0} [built]
   [63] (webpack)/~/node-libs-browser/~/process/browser.js 2.06 kB {0} [built]
  [256] ./app/route-handlers/Application.jsx 494 bytes {0} [built]
  [262] (webpack)/~/node-libs-browser/~/events/events.js 8.25 kB {0} [built]
  [264] ./app/containers/Application.jsx 3.76 kB {0} [built]
  [265] ./app/components/MainMenu.jsx 4.41 kB {0} [built]
  [266] ./app/elements/ReactLogo.jsx 2.98 kB {0} [built]
  [267] ./app/elements/ReactLogo/logo.svg 2.5 kB {0} [built]
  [268] ./app/elements/ReactLogo/logo.png 2.92 kB {0} [built]
  [269] ./app/elements/ReactLogo/logo.jpg 2.86 kB {0} [built]
  [270] ./app/containers/Application.css 1.13 kB {0} [built]
  [271] ./~/css-loader?module&localIdentName=[path][name]---[local]---[hash:base64:5]!./app/containers/Application.css 946 bytes {0} [built]
  [272] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
  [273] ./~/style-loader/addStyles.js 6.09 kB {0} [built]
  [274] ./app/route-handlers/SomePage.jsx 553 bytes {0} [built]
  [275] ./~/react-proxy-loader/mixinReactProxy.js 678 bytes {0} [built]
  [278] ./app/route-handlers/ReadmePage.jsx 555 bytes {0} [built]
  [283] ./app/route-handlers/TodoPage.jsx 479 bytes {0} [built]
  [284] ./app/containers/TodoPage.jsx 3.46 kB {0} [built]
  [285] ./app/components/TodoListMenu.jsx 3.29 kB {0} [built]
  [286] ./app/actions.js 563 bytes {0} [built]
  [287] ./app/route-handlers/TodoListPage.jsx 499 bytes {0} [built]
  [288] ./app/containers/TodoListPage.jsx 4.58 kB {0} [built]
  [289] ./app/store-helpers/Todo.js 980 bytes {0} [built]
  [290] ./app/components/TodoItem.jsx 3.58 kB {0} [built]
  [291] ./app/components/NewTodoItemEditor.jsx 3.34 kB {0} [built]
  [292] ./app/route-handlers/TodoItemPage.jsx 499 bytes {0} [built]
  [293] ./app/containers/TodoItemPage.jsx 4.57 kB {0} [built]
  [294] ./app/components/TodoItemEditor.jsx 3.38 kB {0} [built]
  [295] ./app/route-handlers/HomePage.jsx 479 bytes {0} [built]
  [296] ./app/containers/HomePage.jsx 3.02 kB {0} [built]
  [297] ./app/route-handlers/NotFoundPage.jsx 499 bytes {0} [built]
  [298] ./app/containers/NotFoundPage.jsx 2.97 kB {0} [built]
  [299] ./app/route-handlers/ChatPage.jsx 479 bytes {0} [built]
  [300] ./app/containers/ChatPage.jsx 4.28 kB {0} [built]
  [301] ./app/containers/ChatList.jsx 4.28 kB {0} [built]
  [302] ./app/components/ChatLineView.jsx 3.36 kB {0} [built]
  [303] ./app/components/ChatUserView.jsx 3.05 kB {0} [built]
  [304] ./app/store-helpers/Chat.js 925 bytes {0} [built]
  [305] ./app/containers/ChatList.css 1.12 kB {0} [built]
  [306] ./~/css-loader?module&localIdentName=[path][name]---[local]---[hash:base64:5]!./app/containers/ChatList.css 333 bytes {0} [built]
  [307] ./app/components/NewChatEditor.jsx 4 kB {0} [built]
  [308] ./app/mainStores.js 4.3 kB {0} [built]
  [309] ./~/async/lib/async.js 37.2 kB {0} [built]
  [310] (webpack)/~/node-libs-browser/~/timers-browserify/main.js 2.1 kB {0} [built]
  [311] ./app/fetch-helpers/rest.js 2.44 kB {0} [built]
  [312] ./~/superagent/lib/client.js 24.3 kB {0} [built]
  [313] ./~/superagent/~/component-emitter/index.js 3 kB {0} [built]
  [314] ./~/superagent/~/reduce-component/index.js 405 bytes {0} [built]
  [315] ./app/mainStoresDescriptions.js 1.3 kB {0} [built]
  [316] ./app/update-helpers/react.js 1.27 kB {0} [built]
  [318] ./app/update-helpers/list.js 603 bytes {0} [built]
  [319] ./config/renderApplication.jsx 2.35 kB {0} [built]
  [320] ./config/withTimeout.jsx 353 bytes {0} [built]
  [321] ./config/StoresWrapper.jsx 1.59 kB {0} [built]
     + 201 hidden modules
chunk    {1} 1.js 3.42 kB {0} [rendered]
  [276] ./~/babel-loader?stage=0!./app/route-handlers/SomePage.jsx 479 bytes {1} [built]
  [277] ./app/containers/SomePage.jsx 2.94 kB {1} [built]
chunk    {2} 2.js 4.92 kB {0} [rendered]
  [279] ./~/babel-loader?stage=0!./app/route-handlers/ReadmePage.jsx 489 bytes {2} [built]
  [280] ./app/containers/ReadmePage.jsx 2.99 kB {2} [built] [1 error]
  [281] ./app/containers/ReadmePage.css 1.12 kB {2} [built]
  [282] ./~/css-loader?module&localIdentName=[path][name]---[local]---[hash:base64:5]!./app/containers/ReadmePage.css 319 bytes {2} [built]

ERROR in ./app/containers/ReadmePage.jsx
Module not found: Error: Cannot resolve 'file' or 'directory' ./../../README.md in /home/pertrai1/Repos/WeVoteServer/web_app/app/containers
 @ ./app/containers/ReadmePage.jsx 37:26-54

npm install not working

when I try to run npm install I get a bunch of errors. Then when I try to run npm run start-dev I get this error output:

npm run start-dev                              ruby-2.0.0p481 master 8aa750b โœ—

> [email protected] start-dev /Users/robsimpson/Repos/WeVoteServer/web_app
> node lib/server-development

module.js:338
    throw err;
          ^
Error: Cannot find module '../build/stats.json'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at module.exports (/Users/robsimpson/Repos/WeVoteServer/web_app/lib/server.js:13:14)
    at Object.<anonymous> (/Users/robsimpson/Repos/WeVoteServer/web_app/lib/server-development.js:1:82)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "start-dev"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start-dev: `node lib/server-development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start-dev script 'node lib/server-development'.
npm ERR! This is most likely a problem with the wevoteusa package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node lib/server-development
npm ERR! You can get their info via:
npm ERR!     npm owner ls wevoteusa
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/robsimpson/Repos/WeVoteServer/web_app/npm-debug.log

I get this both on Linux and Mac.

REST URI's

Discuss the endpoints that will be put together.

Right now I see these type of URI's:

http://my.wevoteeducation.org/sod/cand/12/voterstance/
http://my.wevoteeducation.org/pos/cand/12/support/
http://my.wevoteeducation.org/pos/cand/12/infoonly/

Wanted to know if these will be the same for what is being developed now? My thoughts are that it might be a better representation if we had 2 targets:

  • candidates
  • users

then from there we could determine id and after that the action. So possibly something like:

http://my.wevoteeducation.org/candidate/12/support

One error shown when installing 'npm run dev-server'

On my local machine, I ran this command in 'WeVoteServer/web_app':

npm run dev-server

Most everything ran successfully. This message was shown "webpack: bundle is now VALID". But there was one error reported:

ERROR in ./app/containers/ReadmePage.jsx
Module not found: Error: Cannot resolve 'file' or 'directory' ./../../README.md in /Users/dalemcgrew/PythonProjects/WeVoteServer/web_app/app/containers
 @ ./app/containers/ReadmePage.jsx 37:26-54

Add icon assets

We need to have a starter sprite of the icons that will be used for the app. They don't have to be the ones that will be used when we go into production but we will need some to start with.

People Photos

Will need a collection of photos for the cards that will be available for each voter being represented in the proof of concept. This will eventually come from the services but for now we will need static ones. When they are collected, put them into WebAppPublic/assets/photos/. This directory has not been created yet.

Create backlog of stories

Will need to have a backlog of stories that we know will be needed for the app to be built. Put these under the Milestone Backlog so we can then pull them into Sprint # Milestone when the story is ready to be worked on

Add hjs-webpack for development server

While developing:

  • easy to setup and run dev server
  • transpile ES6+, JSX, Stylus code
  • hotload (a.k.a. live reload) modules when changed

When ready to ship:

  • minify and bundle all the things
  • output minfied, uniquely named static files into public directory
  • be able to generate/customized static HTML file(s) used to deliver my JS app
  • be ready to just upload it all to something like surge.sh
  • sometimes I want to pre-render all known HTML into static HTML files and have React take over once the clientside JS loads.

Static views

There will need to be static views created for:

  • search bar
  • menu header
  • person cards
  • footer menu

Fix Vagrant Issues

I have found the issues and will have them implemented by middle of the week.

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.