Giter Club home page Giter Club logo

filmlog's Introduction

FilmLog

A simple web app to track film rolls and exposures and have an easy means to print them out for a physical log/negative file.

Development Installation

There are a few ways to install FilmLog currently. The current method is to use a Python virtualenv and install Flask into it. Docker is also an option though that method isn't quite as up to date. In both cases, MariaDB 10.1 (or MySQL 5.6 may work) will need to be installed separately.

For now, let's go the virtualenv route:

  • In Your MariaDB/MySQL Installation, create a DB and user for FilmLog
CREATE DATABASE FilmLogDev;
GRANT ALL ON FilmLogDev.* TO 'FilmLog'@'localhost' IDENTIFIED BY 'password';
  • Populate the DB by sourcing the schema.sql and base-data.sql files These are under the database directory along with a helper script you can optionally use. The script will populate the base schema, some sensible values for things like available films, and create a test user (the username and password are both 'dev') into a FilmLogDev database.
  • Install virtualenv for Python 3.6: https://flask.palletsprojects.com/en/1.1.x/installation/
  • Activate the virtualenv
. venv/bin/activate
(Assuming you called your virtual env, `venv`)
  • Make sure you are in the project root then run
pip install -r requirements.txt
  • Copy config.ini.example to config.ini and fill in as appropriate If testing logins, you'll need to make sure Testing is true or you have Google Recaptcha keys generated. Otherwise toss in your DB information into the datbase url.
  • If all goes well, assuming your virtualenv is named venv you can simply run the wsgi.sh script in the root. It should start the app on http://localhost:5000.

Schema Changes

To update an existing development installation, if there are any database changes (they'll show up as updates to database/migrations), you will need to run the migrate.py script under your virtual env. Or you can re-import the fill schema.sql from scratch but that would be rather extreme. The migrate.py should roll through any updates that have not yet been run since the last pull.

filmlog's People

Contributors

m00dawg avatar

Watchers

 avatar  avatar  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.