Coder Social home page Coder Social logo

admintool's Introduction

admintool

Build Status

An administration tool for Software Carpentry bootcamps.

Goals

A dummy database is stored (as SQL) in roster.sql, and queries that we commonly run against it are stored in Makefile. (Run make on its own in the root directory to see a list of targets.) We would eventually like this tool to be able to display all the things the Makefile can, and also allow:

  1. Manual entry of individual records in all of the database tables.
  2. Batch entry of people and tasks from CSV files in the style of the Add Multiple Users plugin for WordPress.

Quick Start

  1. Install SQLAlchemy, Flask, and Nose.
  2. python app.py.
  3. Go to http://127.0.0.1:5000/.

A Better Way

  1. Install pip and virtualenv.
  2. virtualenv venv
  3. source venv/bin/activate
  4. pip install -r requirements.txt
  5. python app.py
  6. Go to http://127.0.0.1:5000/.

Running Tests

Just run nosetests from the root of the repository.

Environment Variables

The following environment variables can be set to change the behavior of the app.

  • SWCARPENTRY_ADMIN_PATH is a path to a directory containing roster.sql, and in which roster.db will be created if it doesn't already exist. By default, it's the same as the root directory of the repository, in which case test data will be used.

  • FLASK_CONFIG is the base server configuration to use. It can be default, testing, or production; by default, it's default.

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.