Giter VIP home page Giter VIP logo

wikonnect's Introduction

Wikonnect

Swag is an open-source e-learning platform that is designed to allow anyone to learn, create content, and contribute to the code. Developed by Tunapanda Institute in Nairobi, Kenya.

Getting Started

The front-end is developed using Ember.js. We recommend getting started with Ember by going through the tutorials.

The back-end is developed using Node.js.

Prerequisites

In order to get Wikonnect running locally:

Ensure that Ember-cli and Node.js are installed. You will also need Yarn (Ubuntu Installation), and knex.

Set up PostgreSQL

Ubuntu installation

OSX installation

Windows installation

You should create a postgresql user (with password), and set up database. (Don't forget to grant privileges to your user on the database!)

=# CREATE USER my_user WITH PASSWORD 'my_password';
=# CREATE DATABASE my_database;
=# GRANT ALL PRIVILEGES ON DATABASE my_database TO my_user;

Installing

A step by step series of examples that tell you how to get a development env running

Clone the repository

git clone https://github.com/tunapanda/wikonnect.git

Install the node packages in the main project directory...

cd wikonnect/
yarn

Now let's set up the server. First, go into the server directory and install the node packages.

cd server/
yarn

Then, rename the file server/config/db.example.js to server/config/db.js, then edit the credentials that will provide access to your development datbase. (Do not use the development database in a production environment)

development: {
    host: 'localhost',
    database: 'my_database',
    user: 'my_user',
    password: 'my_password',
  },

Next, you will want to set up your database and start your server.

Running knex migrate:latest in the server/ directory will use the migration files in server/migrations to create and format the tables so that they will work with wikonnect.

To populate the database with dummy data (defined in server/db/seeds), run knex seed:run.

Now start your server! yarn start.

If you see an Elasticsearch error, don't worry, you don't need Elasticsearch to run the app.

Get Ember up and running

Now start your server!

yarn start.

Get Ember up and running

Install the node packages for the Ember app. Run yarn in wikonnect/frontend.

Start the app!

yarn start.

Now point your favorite browser to http://localhost:4200/ and you will be able to see the app.

wikonnect's People

Contributors

jakeii avatar mrlarso avatar mosesokemwa avatar proverbial-ninja avatar

Watchers

James Cloos 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.