GithubHelp home page GithubHelp logo

wey-gu / yet-another-gsc-c-lighthouse Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.81 MB

Lighthouse was an old website collecting all tools inside my previous organization, this was a redesign PoC for it. The first side project made me learning things like UI, DB schema design, promo video, and staff, which ended up turning me into a daytime developer years later.

Python 55.06% CSS 3.31% HTML 41.37% Shell 0.26%

yet-another-gsc-c-lighthouse's Introduction

Yet another Lighthouse

Lighthouse was an automation/ tool sharing platform in my origization many years ago and this project was a PoC to redesign it, built with Flask and Materialize CSS.

This was my first side project triggering me design layout, db scehma as mentioned in about me, which end up being a developer years later.

inno-search_demo

Promo video

A promo video was created by me and voiced by Michael Shi, click for watching it on viemo.

screen_inno_promo

Database Schema

database_schema

How To

requriement

Frontend framework Materialize was used materialize-v0.98.0. Python html2text by Aaron Swartz was used: https://github.com/aaronsw/html2text

pip install flask
pip install openpyxl
pip install html2text
pip install Flask-WhooshAlchemy-Redux
pip install sqlalchemy-migrate
pip install flask_wtf
pip install -U pytagcloud
    apt-get install python-pygame
    apt-get build-dep python-pygame
    pip install pygame
    pip install simplejson
pip install -U nltk

A fresh setup sqlite

./db_create.py
./dataMigrate.py
./run.py

Cleanup

rm -fr *.db
rm -fr db_repository

Deployment with nginx

(env)# apt-get install nginx
(env)# pip install gunicorn
(env)# vi wsgi.py
#!env/bin/python
from app import app
application = app
if __name__ == “__main__”:
    application.run()

(env)# gunicorn -w 4 -b 127.0.0.1:8080 wsgi
/etc/nginx/sites-available/default
server {
    listen 80;
    server_name inno-search.com;

    location / {
        proxy_pass http://127.0.0.1:8080; # to gunicorn host
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

  }

Rights

used photo https://unsplash.com/photos/GYNxcQvBNzA Rights reserved by Etienne Desclides( https://unsplash.com/@atn )

yet-another-gsc-c-lighthouse's People

Contributors

wey-gu avatar

Watchers

 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.