Code Monkey home page Code Monkey logo

movieserver's Introduction

Movie Server

A server to serve movies

Dependencies

The server component is written entirely in Go, and requires version >= 1.1

The tests are written with Python 2.7 and the environment is set up with virtualenv. To install virtualenv, run

$ pip install virtualenv

Installation

If you haven't set $GOPATH on your machine, you should run the following commands before installing:

$ mkdir -p $HOME/gocode
$ export $GOPATH=$HOME/gocode
$ export $PATH=$PATH:$GOPATH/bin

The $GOPATH location above is just an example. You can use any directory. You may want to store the above commands in your .bashrc or another configuration file.

To install or update the movie server, run the following code:

$ go get -u github.com/manugoyal/movieserver

This should install all of the server's dependencies as well.

To build the testing virtualenv, execute

$ make testdeps

Usage

To run the server:

$ movieserver -path [location-name]=[path-to-directory] [-path ...]

There are a number of settings you can tweak via command line flags. To get a complete description of the settings, run

$ movieserver -help

To run the tests, execute

$ make test

Note: On Macs, Python may not know where to find certain MySQL client dylibs when importing the _mysql library. In order to fix this, set the DYLD_LIBRARY_PATH environment variable to the location of your MySQL installation's library directory (possibly /usr/local/mysql/lib)

Licence

Copyright 2013 Manu Goyal

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

movieserver's People

Contributors

dependabot[bot] avatar manugoyal avatar stephan-x-liu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

movieserver's Issues

Make login verification actually secure

Right now you can just bypass the login system by jumping to the /main page. We need to properly authenticate the user at the login page by sending them a cookie and checking that they have a matching cookie when they access the server. We also shouldn't be storing passwords as plaintext in the database. We should salt and cryptographically hash them.

Implement server side sorting

Since we're moving pagination and filtering to the server side, sorting did (and should) get moved along with that. With the current server-side pull request, ordering isn't yet implemented.

Notification while server is indexing movies

Currently, while the server is indexing a directory for the first time, it shows a blank table until you hit refresh after the data is loaded. The client should display a loading notification while the data is loading (this can be defined as the server returning 0 rows for a table)

Kill the heartbeat more quickly

Currently each heartbeat thread either runs a task or waits for a kill signal and returns, so if a kill signal is sent while a task is running, it will wait for the task to finish before killing the thread. This can take a long time for long-running tasks, so see if there's a way to kill the tasks faster.

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.