Giter Site home page Giter Site logo

tosdr2's Introduction

ToS;DR 2

A web app to submit and review points about services for http://tosdr.org.
Written in JavaScript with help of the meteor framework (https://www.meteor.com).
Data is saved in a MongoDB.

Current state

Highly experimental, incomplete, insecure and not scalable.
But a great start for 21 working hours :-)

How to start in development mode

Install meteor:

curl https://install.meteor.com/ | sh

Cd into the project root directory (where this README is located) and enter:

meteor

Open [http://localhost:3000] (http://localhost:3000) in your browser.

You need to sign in to see something interesting. You can sign in/up yourself with the menu in the top right corner. Email addresses are currently not verified and "Forgot password ?" does not work.

How to make a user to a moderator

The most functionality is hidden from normal users. Therefore you need to make one user to a moderator in order to see all functionality.

First you need to open the mongo shell in parallel to the running meteor app.

meteor mongo

Then you need to find the correct user id and add the role

db.users.find().pretty() // find _id
db.users.update({_id: 'USER_ID'},{$set: {roles: {moderator: true}}})
db.users.find().pretty() // should have roles attribute now

You can get the user of the current logged in user also in the browsers console by

Meteor.userId()

Import from [tosdr-build] (https://github.com/tosdr/tosdr-build)

Please see .tools/import.sh

Publish/Export

As moderator you can export (=publish) points, services and topics to the file system. Currently it's written to '/tmp/tosdr'. The exported files should be compatible with the one imported from tosdr-build.

tosdr2's People

Contributors

shybyte avatar

Watchers

James Cloos avatar  avatar

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.