Giter Club home page Giter Club logo

community-calendar's Introduction

about this project

the community calendar is intended to be a widget that communities can include in their websites to share their events among related communities.

the back-end is currently provided by techgrind.asia.

this project is initiated by the Beijing GNU/Linux Usergroup for the Beijing Tech Community.

you are welcome to use it for your own region, rewrite it for different frameworks or adapt it to a different back-end.

the code is written in coffeescript and needs node.js only for coffeescript translation.
deployment can be done as static javascript files, and does not need any kind of dynamic server for the front-end.

the back-end is a RESTful API written for the sTeam server as used by techgrind.asia

development instructions

step 1: install node.js

http://nodejs.org/download/

step 2: clone the repo

either from your own fork at gitlab (see contribution instruction): git clone https://gitlab.com//community-calendar.git

or directly: git clone https://gitlab.com/beijinglug/community-calendar.git

step 3: install node packages:

npm install

this installs all dependencies (including coffee) for our project into the project's node_modules directory based on the 'package.json' file

step 4: start the server

node_modules/.bin/coffee scripts/server.coffee

but for convenience we can install coffee in the global node environment:

npm install -g coffee-script

so we can just say

coffee scripts/server.coffee

if the server is working you'll see:

Listening on port 8000

don't use bootstrap

when we tried to use twitter-bootstrap to style the tabs we discovered that bootstrap forces its style on the whole webpage. since this widget is designed to be embedded in other websites, we do not want to break the original style of the website, hence we may not use bootstrap for our styling.

how to contribute your changes

sign up at gitlab.com

fork the project

clone the forked project to your computer git clone https://gitlab.com//community-calendar.git

follow the instructions above to set up your environment

when you are properly set up you should be able to load http://localhost:8000/ in your browser and see something similar to http://ngtg.techgrind.asia:7999/

to get an idea how this widget will be used, take a look at http://beijinglug.org/index.php?option=com_content&view=section&layout=blog&id=2&Itemid=9

you can see the widget in the lower right corner (it is hidden there because it is not yet functional)

push changes to your repo frequently.

when ready please file a merge request or notify the project developers about your contribution

official repo

the official repo is https://gitlab.com/beijinglug/community-calendar copies of the project exist at https://gitcafe.com/beijinglug/community-calendar and https://github.com/beijinglug/community-calendar

testing

FrisbyJS is used to test the API. It is run through Jasmine and is based on nodejs.

Once you have nodejs installed, run the following statement to install Frisby and Jasmine:

npm install -g jasmine-node frisby

Then execute the test by:

cd project/directory
jasmine-node tests/

community-calendar's People

Contributors

embee avatar manastaneja avatar namanyayg avatar samarsault 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.