GithubHelp home page GithubHelp logo

pranishd1 / events-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rokwire/events-manager

0.0 0.0 0.0 954 KB

Events Manager is the administrative interface to events in the Rokwire Platform. Through this web application, users can manage existing events coming from calendars and/or create and manage user events.

License: Apache License 2.0

Shell 0.92% JavaScript 0.22% Python 48.54% CSS 3.53% HTML 46.52% Dockerfile 0.27%

events-manager's Introduction

Events Manager

The goal of the Events Manager is to provide a web interface to manage events in the Rokwire platform. This includes the crawling events from event sources, the approval of the events ingestion to Rokwire events building block and the visualization of the events, etc.

Run in Development Mode

MongoDB's service needs to be started and a Mongo Shell needs to be connected in a separate terminal instance

  • For MacOS
brew services start [email protected]
mongo
  • Ubuntu (The daemon-reload command isn't required)
sudo systemctl daemon-reload
sudo systemctl start mongod
mongo

This repository should be put inside /events-manager and run outside the folder. There are two ways to do so:

The first one:

  • (Linux or MAC):
export FLASK_APP=events-manager
export FLASK_ENV=development
flask run
  • (Windows):
set FLASK_APP=eventsmanager
set FLASK_ENV=development
flask run

The second one:

  • create a file called .flaskenv
  • fill in file with:
    • FLASK_APP=__init__.py
    • FLASK_ENV=development
    • FLASK_DEBUG=1

Setup Environment

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt

Install pre-commit hooks

pip install -r requirements-dev.txt
pre-commit install

The following environment variables need to be set when running on development machine. This is not required when running within AWS.

AWS_ACCESS_KEY_ID=<AWS Access Key ID>
AWS_SECRET_ACCESS_KEY=<AWS Secret Access Key>

Run as Docker Container in Local

cd events-manager
./docker.sh
docker run --rm --name events -v $PWD/config.py:/app/events-manager/config.py -p 5000:5000 rokwire/events-manager

MongoDB Setup

MongoDB needs to be installed for the flask app to run and interface with a database

  • For MacOS, prerequisites are having XCode and Homebrew
brew tap mongodb/brew
brew install [email protected]
  • For Ubuntu LTS releases
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -

The above should work, but in case a gnupg error is encountered

sudo apt-get install gnupg
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -

Create a list file for MongoDB

echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list

Reload and Install

sudo apt-get update
sudo apt-get install -y mongodb-org

The template setup configuration exists in config.py.template, to run locally a new file config.py needs to be created accounting for changes based on your local environment setup.

events-manager's People

Contributors

bingzhang avatar jianyuan-zhan avatar hjiang2 avatar sandeep-ps avatar span14 avatar anubhavg1999 avatar rachelxdr avatar panqiutang avatar candicek avatar dependabot[bot] avatar minump avatar prekira avatar wenjzhu avatar yathannsh avatar ddriddle 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.