GithubHelp home page GithubHelp logo

felixyang / scriptfan.com Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scriptfan/scriptfan.com

0.0 2.0 0.0 1.01 MB

Website of ScriptFan.com

Home Page: http://scriptfan.com

License: BSD 3-Clause "New" or "Revised" License

scriptfan.com's Introduction

什么是ScriptFan.com

ScriptFan.com 是西安一个线下技术沙龙的官方网站程序, 沙龙的名字是ScriptFan技术沙龙, 主要以讨论脚本语言为主, 比如 Python, Perl, PHP, Ruby, Shell, JavaScript, CoffeeScript 等.

网站主要功能

  1. 发布活动和新闻
  2. 用户名片
  3. 用户讨论
  4. 每期线下活动的话题的总结

网站程序简介

网站使用Python语言写成, 用到了Flask作为主要框架, SqlAlchemy作为ORM框架,页面效果使用的是Bootstrap。

贡献代码,从这里开始

欢迎熟悉 Python, Flask, SqlAlchemy 的朋友一起参与开发 ,数据库的 Migration 工具采用 SqlAlchemy 作者开发的 alembic, 方便在开发过程中持续的改进数据库结构, 有兴趣参与开发的同学需要先学习下. 申请开发权限,请联系 david.scriptfan#gmail.com

1. 下载项目并安装依赖库

$ [email protected]:kingheaven/ScriptFan.com.git
$ cd ScriptFan.com
$ git checkout -b dev origin/dev
$ virtualenv venv
$ . venv/bin/activate
(venv) $ pip install -v -r requirements.txt

2. 数据库配置

在本地数据库中建立一个数据库,如 scriptfan_dev

修改配置文件

$ cp website/scriptfan/scriptfan.cfg.sample website/scriptfan/scriptfan.cfg
$ cp website/alembic.ini.sample website/alembic.ini

website/scriptfan/scriptfan.cfg 中的 SQLALCHEMY_DATABASE_URIwebsite/alembic.ini 中的 sqlalchemy.url 替换为你的数据库配置

3. 生成数据库

$ cd website
$ alembic upgrade head

4. 启动本地开发服务器

$ python manage.py runserver

scriptfan.com's People

Contributors

greatghoul avatar darth30joker avatar imom0 avatar

Watchers

James Cloos avatar  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.