roxolan / hypatia

Open Realtime Education. An open source LMS and MOOCs platform based on Facebook's React, Google's Firebase and Slack

Home Page:https://theonapps.github.io/hypatia/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hypatia LMS: open realtime education

Build Status Github All Releases npm Slack Group

Now accepting contributors. If you are interested, please join the Slack group.

The project is currently under development, with continuous changes and some bits and bobs not working. Feel free to test it if you like but don't expect it to be production-ready until mid 2017.

Demo: https://hypatia-8d923.firebaseapp.com (You need to sign up with a valid email address to access some pages)

Provisional project's website: https://theonapps.github.io/hypatia/

Slack group: http://slack.theon.io

Home

Page

Admin

Getting Started

Warning! This documentation is not super stable. Post an issue if you find any trouble or something is not clear

npm install
  • Create a new project in your Firebase account

  • Enable at the Email/Password provider in the Firebase authentication providers

  • Create a file called .env in the root of your cloned repository and add the following code. Replace the values with the ones from the project you created in Firebase:

FIREBASE_API_KEY=your_firebase_api_key
FIREBASE_AUTH_DOMAIN=your_firebase_project.firebaseapp.com
FIREBASE_DATABASE_URL=https://your_firebase_project.firebaseio.com
FIREBASE_STORAGE_BUCKET=your_firebase_project.appspot.com
  • Update the default project value in .firebaserc

  • If you want some demo data, import /data/demo-data.json into your Firebase database

  • If you are going to use Firebase storage, you should give read access to everyone, otherwise only the authenticated users will be able to download images or files. In your Firebase console, replace the rules with these ones:

allow read: if true;
allow write: if request.auth != null;
  • To give a user admin rights, you have to add a field called level with the value 5 into a user (using the firebase UI). Once you do that, login into Hypatia with that user and you will see the admin link in the sidebar navigation

Start development server with hot reloading

npm run dev

Testing

Run test once

npm run test

Test watch

npm run test:watch

Linting

Linting is using Airbnb Eslint configuration

npm run lint

Deploy to production

Build for production

npm run build

Install Firebase tools (if you haven't done it yet)

npm install -g firebase-tools

Login and init the project

firebase login
firebase init

Deploy to Firebase

firebase deploy

Contributor License Agreement

By contributing your code to Hypatia you grant to Joan Siddharta Mira Martos (Theon.io) a non-exclusive, irrevocable, worldwide, royalty-free, sublicenseable, transferable license under all of Your relevant intellectual property rights (including copyright, patent, and any other rights), to use, copy, prepare derivative works of, distribute and publicly perform and display the Contributions on any licensing terms, including without limitation: (a) open source licenses like the MIT license; and (b) binary, proprietary, or commercial licenses. Except for the licenses granted herein, You reserve all right, title, and interest in and to the Contribution.

You confirm that you are able to grant us these rights. You represent that You are legally entitled to grant the above license. If Your employer has rights to intellectual property that You create, You represent that You have received permission to make the Contributions on behalf of that employer, or that Your employer has waived such rights for the Contributions.

You represent that the Contributions are Your original works of authorship, and to Your knowledge, no other person claims, or has the right to claim, any right in any invention or patent related to the Contributions. You also represent that You are not legally obligated, whether by entering into an agreement or otherwise, in any way that conflicts with the terms of this license.

Joan Siddharta Mira Martos (Theon.io) acknowledges that, except as explicitly described in this Agreement, any Contribution which you provide is on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.

Credits

Icons from Flaticon.com (Freepik and Madebyoliver), triangles background by rvika from Fotolia and photos from Google Creative Commons search results

Copyright & License

Copyright (c) 2016-2017 Joan Siddharta Mira Martos (Theon.io) - Released under the GPLv2 license.

About

Open Realtime Education. An open source LMS and MOOCs platform based on Facebook's React, Google's Firebase and Slack

https://theonapps.github.io/hypatia/


Languages

Language:JavaScript 76.0%Language:CSS 22.9%Language:HTML 1.1%