Skip to content

BaselHack/mews-news

 
 

Repository files navigation

mews-news

A personalized news feed using Node.js & Nedb (a file-based Mongodb API compatible db).

Before starting mews-news, make sure that you copy .env.dist to .env and fill in the configuration as desired.

tech stack

mews-news is fully server-side rendered web application powered by Node.js. The following is a selection of the modules in use:

  • express webserver
  • session handling via session-file-store, a simple file-based session storage
  • passport authentication
  • moustache templating

machine learning

mock server

cd content
pip3 install flask
./server.py

endpoints samples:

vote a title:

curl -d '{"username":"user", "title":"my title","vote":"0"}' -H "Content-Type: application/json" -X POST http://localhost:7070/api/vote

get votings:

curl -d '[{"username":"user", "title":"my title","id":1},{"username":"user", "title":"my title2","id":2}]' -H "Content-Type: application/json" -X POST http://localhost:7070/api/votes

development

$ cp .env.dist .env
$ npm install
$ npm run sass:build
$ npm i -g nodemon
$ npm run sass:watch
$ npm run server:stat:dev

production

$ cp .env.dist .env
$ npm install
$ npm run sass:build
$ npm run server:start

TODO

  • logo
  • backend
  • credits

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 42.7%
  • CSS 37.4%
  • Python 18.3%
  • Shell 1.6%