GithubHelp home page GithubHelp logo

amos-zq / justpic Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 29.84 MB

justpic(unfinished)

License: MIT License

Python 6.46% CSS 3.70% JavaScript 10.48% C 77.10% Makefile 0.34% D 0.31% C++ 1.41% Frege 0.19%

justpic's Introduction

Justpic

Justpic介绍

Justpic是一个简宜的图像检索系统,目前还在开发中

在线demo

部署教程

环境搭建

1.安装 python开发环境 (*nix已自带)

安装好后建立沙盒 $virtualenv picenv $source picenv/bin/activate

2.下载源码

$cd ../ & git clone https://github.com/matrixorz/justpic

或者直接下载:justpic

3.进入到项目目录,初始化数据:

$cd justpic/1
$pip install -r requirements.txt

4.初始化数据:

$python manage.py validate
$python manage.py syncdb
$python manage.py initdb

5.运行:

$python manager.py

5.访问http://localhost:8080 测试

nginx+uwsgi部署

安装uwsgi

wget http://projects.unbit.it/downloads/uwsgi-2.0.4.tar.gz
sudo apt-get install libxml2-dev
tar -zxvf uwsgi-2.0.4.tar.gz
make -f Makefile.Py27
cp uwsgi /usr/sbin/uwsgi

server {
   listen 80;
   server_name xxx.xxx;
   access_log /var/log/nginx/xxx_access.log;
   error_log /var/log/nginx/xxx_error.log;

   location / {
      uwsgi_pass 127.0.0.1:8630;
      include uwsgi_params;
   }
}

Nginx配置完毕

uwsgi -x path_to_project/django.xml

代码说明参见代码文件

justpic's People

Contributors

lucifferceo avatar

Watchers

James Cloos avatar  avatar

Forkers

song-tu

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.