Giter Site home page Giter Site logo

caruana / hypatia Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gazpachu/hypatia

0.0 2.0 0.0 6.65 MB

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

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

JavaScript 63.72% CSS 34.31% HTML 1.96%

hypatia's Introduction

Hypatia: realtime education

WARNING

The project is currently under development, with countinous 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.

More info

Project's website: https://gazpachu.github.io/hypatia/

Slack group (invitation only): https://hypatialms.slack.com To request for an invitation, contact me at hello [@] joanmira {.} com

Home module

Chat module

Getting Started

npm install
  • Create a new project in your Firebase account

  • Create a file called firebase.jsx in /app/src/constants/ and add the following code with the details from the project you created:

export const firebaseConfig = {
  	apiKey: "",
    authDomain: "",
    databaseURL: "",
	storageBucket: "",
    messagingSenderId: ""
}
  • Import /data/hypatia-export.json into your Firebase database

  • Set the Firebase database rules to:

".read": "true",
".write": "auth != null"
  • Create a posts folder in Firebase storage and upload demo images with the same filename as the posts' slugs (i.e.: /posts/new-virtual-campus.jpg)

  • Set the Firebase storage rules to:

allow read: if true;
allow write: if request.auth != null;
  • Create as many groups (teams) in Slack.com as you want and add a custom integration (BOT) to each one of them

  • Create a file called slack.jsx in /app/src/constants/ with the following structure. Enter the apiToken for each BOT you created and enter the details that make more sense to your groups

export const slackGroups = [{
		name: 'Maths',
		id: 'maths',
		slug: 'MA',
		apiToken: ""
	},
	{
		name: 'English',
		id: 'english',
		slug: 'EL',
		apiToken: ""
	}						
]

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

Production

Build for production

npm run build

Start production server

npm run start

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.