Git Product home page Git Product logo

cursemeta's Introduction

CurseMeta v2

Now with 100% LESS C# voodoo.

The old version is under the full_docker branch.

Required software

  1. Setup a venv with pip install -r requirements.txt
  2. Run a redis instance. DB 1 and 2 are used for live and staging.

Licence

EUPL v1.2

Notes

For some random notes about this project, including what tools you might find useful, see NOTES.md.

A (partial) history of CurseMeta sits in this gist.

Web icons

The website uses Font Awesome Pro 5. (Dries007's personal license)

The FA files must be added in Frontend/static, to css and js. They CAN NOT be checked into version control.

Some of the icons may be missing with the free version.

Maintaining a live environment

~/purge-cache.sh should contain a script that purges any external caches.

First time you need to also run python -mFrontend db init

~/live

cd ${PATH_TO_ENVIRONMENT}

. venv/bin/activate
export PYTHONPATH=`pwd`
export CONFIG_ENV="live"

NAME="venv LIVE"
COLOR="$(tput setaf 1)"
BOLD="$(tput bold)"
RESET="$(tput sgr0)"
export PS1="\[${BOLD}\][\u \[${COLOR}\]${NAME}\[${RESET}${BOLD}\] \W]$\[${RESET}\] "

cd run

~/update-live.sh

#!/bin/bash
set -o errexit # Exit at first error
. ~/live # activate live env + cd to run + prompt + PYTHONPATH + CONFIG_ENV
git pull
pip install -qr ../requirements.txt
# update DB
python -mFrontend db migrate
python -mFrontend db upgrade
# Reload everything
touch ../config/*.ini
~/purge-cache.sh

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.