Git Product home page Git Product logo

flaskmongobackbone-skeleton's Introduction

CFCM Skeleton App

This is a skeleton web application using the MongoDB, Flask, backbone.js, bootstrap.js stack. You can use it as a starting point to create your own web app based on this stack.

Contents

Installing

To create your own application based on this one, first create a new git repository (e.g. on github). Next, clone this repo:

$ git clone https://github.com/elplatt/FlaskBackbone-Skeleton.git MyApp

Forking

If you would like to create a repository for your new app, first create an empty git repository. Then change the origin on the cloned repo to the repo for your new app, and push.

$ cd MyApp
$ git remote rm origin
$ git remote add origin https://github.com/myuser/MyApp.git
$ git push -u origin master

This example will push a fresh fork of the repo to myuser's MyApp repo.

Installation

To install this app, first install the dependencies, and then create a configuration file.

Dependencies

pip install requirements.txt

Configuration

To configure, copy the sample configuration file and fill it in with your info.

$ cp app.config.sample app.config

Managing Users

The command line tool userconfig can be used to add, modify, and remove users.

To see usage, just run userconfig with no arguments:

$ ./userconfig
Usage:
  userconfig add <username> <password>
  userconfig remove <username>
  userconfig password <username> <password>

To add a user named alice with password topsecret:

$ ./userconfig add alice topsecret

To change the password for user alice to bettersecret:

$ ./userconfig password alice bettersecret

To remove user alice:

$ ./userconfig remove alice

Running

To run the app locally, just run server.py:

$ python server.py

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.