GithubHelp home page GithubHelp logo

djahren / link Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shish/link

0.0 0.0 0.0 138 KB

See what you've got in common

License: GNU General Public License v3.0

Python 62.51% JavaScript 0.70% CSS 1.57% Dockerfile 0.88% Mako 34.34%

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

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