Coder Social home page Coder Social logo

snowian / djacket Goto Github PK

View Code? Open in Web Editor NEW

This project forked from djacket/djacket

0.0 2.0 0.0 242 KB

A Git server written in Python/Django. https://djacket.github.io

License: MIT License

Python 42.96% JavaScript 5.79% HTML 30.23% CSS 15.36% Shell 5.66%

djacket's Introduction

Djacket

A Git server written in Python/Django. It's meant to be for personal or small business usages. Installation is available and tested for Linux servers.

Index

Requirements

Djacket requires these packages:

- Git (version 1.8 or above)
- Python3 and pip3 (any version of Python version 3.x)
- Pillow imaging library (https://pypi.python.org/pypi/Pillow)

to be installed and working.

Installation

Download latest release from https://github.com/Djacket/djacket/releases/latest, then extract and install:

tar xzvf djacket-v0.1.0.tar.gz
cd djacket-v0.1.0
sudo bash setup-djacket.sh

after installation you can start Djacket by running

./djacket.sh start 8080

Your web server should be configured to serve Djacket and it's static and media files. After installation, folder path for static and media files is printed out for server settings. Nginx is the recommended web server (and it can work along with your existing installation of Apache too). In your Nginx configuration put (assuming your domain is example.com):

server {
	listen 8585;
	server_name example.com;
	client_max_body_size 32M;

	location / {
        proxy_set_header Host $http_host;
		proxy_pass http://0.0.0.0:8080;  # Port number Djacket is started on.
	}

    location /media {
        alias /path/to/djacket-v0.1.0/core/media/;
    }

    location /static {
        alias /path/to/djacket-v0.1.0/core/static/;
    }
}

Now if you visit http://example.com:8585, you have a fully functioning Djacket.

For more details, troubleshooting or manual installation see INSTALL file.

Contribution

Djacket's backend technology is Python/Django v1.8. aside from this, libraries:

python-dateutil
django-easy-pjax

are used, so if you want to make changes to backend you need these installed. These libraries will be provided inside libs folder for each release.

Frontend is maintained using gulpjs and bower, so first make sure you have nodejs and gulp installed globally then inside core/frontend, run

npm install

Now you can make changes to frontend views, styles and scripts by modifying files in core/frontend/public/dev. Any changes you make will be compiled by gulp and pushed to build folder. So if you made any changes make sure to do

gulp compile

which runs the compilation task or if you are on constant development run

gulp

so default task will run (which is watching for file changes and pushing them to build folder)

Issues

If you encountered any bugs or issues, Please report it either in Github issues section or send it as an email to [email protected]

Documentation

Project is fully documented and it can be reached by going to:

/admin/doc/

"docutils" package is required for browsing through.

License

The MIT License (MIT)

Copyright (c) 2016 Djacket Project.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

djacket's People

Watchers

 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.