Giter Site home page Giter Site logo

link's Introduction

tl;dr:

Plain python:

Using Python 3.7+

pip install -r requirements.txt
python link.py DB_DSN=sqlite:///link.sdb

When run like that it'll print out SECRET=<random string> - this is the randomly generated session encryption key. You can then add SECRET=... after DB_DSN=... to make sure that cookies stay compatible between site reloads.

Run unit tests with:

pytest

Or inside docker:

docker build -t link .
docker run -t -p 0.0.0.0:8100:8000 link

And then the website should be visible at http://localhost:8100/

By default we use an sqlite database in /db, which will be wiped when the container stops. To keep /db on a named volume so it will be saved between runs, add -v linkdb:/db after run.

If you want to use an external database, add -e DB_DSN=postgres://user:password@hostname/database after run.

link's People

Contributors

djahren avatar shish avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

djahren

link's Issues

References to vars that don't exist

In the current version of the code on github there are a few references to vars that don't exist.
link.py
Line 554 and 559: for q in pets.questions:
questions is not defined, it appears it was changed to contents on line 541

models.py
Line 55: secondary=Friendship.__table__,
Should be: secondary=Friendship.__tablename__,

In the Survey class there is references to self.questions on lines 126,129,134, and 137

In the Response class there's reference to self.answers on line 215

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.