Coder Social home page Coder Social logo

lost-n-found-service's Introduction

lost-n-found-service

Web-based Lost & Found Service

To run:

make sure you have virtual env and virtual env wrapper; if not, type:

pip install virtualenv virtualenvwrapper

and then put these two lines in your .bashrc or .bash_profile:

# Virtualenv/VirtualenvWrapper
source /usr/local/bin/virtualenvwrapper.sh

clone the repo in your working directory and type:

. setup.sh

NOTE: if python starts to make your terminal session act strangely, type this command in terminal (assuming you have macports installed):

sudo port selfupdate && sudo port clean python27 && sudo port install python27 +readline

First, download mysql from: http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.16-osx10.11-x86_64.dmg

Screenshot password given by the installer. Start mysql server by going to your System Preferences and starting mysql

Then run commands:

mysql -u root -p #it'll prompt for password, type in the password given during installation
SET PASSWORD FOR root@'localhost' = PASSWORD('<YourPreferredPasswordHere>');
#Set a short & sweet root password, cause you'll be using it quite a bit

CREATE DATABASE lostnfound;


GRANT ALL PRIVILEGES ON lostnfound.* to admin@'localhost' IDENTIFIED BY 'adminpassword';
#this is not your preferred password - please use adminpassword as the actual password for consistency between the four of us

Now, download and install Docker: https://docs.docker.com/docker-for-mac/

Make sure to install the STABLE channel.

After installation, make sure the Docker daemon is running, and then run:

cd lost-n-found-service/app/db
source ./run_docker_dbs.sh
start_docker_dbs
./install_db.sh #This will prompt you for your root passwords you set up earlier. If it gives you an error saying 'lostnfound' db already exists, that's a good thing! Continue to the next steps.

To run locally:

cd /path/to/lost-n-found-service
workon largescale
python ./app/manage.py makemigrations
python ./app/manage.py migrate
python ./app/manage.py migrate --database=auth_db
python ./app/manage.py migrate --database=db1
python ./app/manage.py runserver

point your browser to localhost:8000

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.