Coder Social home page Coder Social logo

22388o / usocial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibz/usocial

1.0 0.0 0.0 1.6 MB

Read. Listen. Pay back. The podcast client and feed reader for your personal server. With Lightning Network support.

Home Page: http://usocial.me

License: GNU General Public License v3.0

Dockerfile 0.88% Python 65.34% HTML 16.10% CSS 2.58% JavaScript 13.20% Shell 1.90%

usocial's Introduction

Read more at usocial.me.

Running usocial

If you want to just run usocial on your laptop, home server or VPS, check the instructions here.

If you want to debug or edit the code, keep reading.

Setting up the development environment

  1. Clone the repo

    git clone https://github.com/ibz/usocial.git && cd usocial

  2. Set up a venv

    python3 -m venv venv
    source venv/bin/activate
    pip install --upgrade pip
    pip install -e .
    
  3. Create an "instance" directory which will store your database and config file.

    mkdir instance

  4. Generate a secret key (this is required by Flask for CSRF protection)

    echo "SECRET_KEY = '"`python3 -c 'import os;print(os.urandom(12).hex())'`"'" > instance/config.py

  5. Export the environment variables (FLASK_APP is required, FLASK_ENV makes Flask automatically restart when you edit a file)

    export FLASK_APP=usocial.main FLASK_ENV=development

  6. Create the database (this will also create the default user, "me", without a password)

    flask create-db

  7. Run the app locally

    flask run

usocial's People

Contributors

ibz avatar

Stargazers

Gábor Mihálcz 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.