Giter Club home page Giter Club logo

big-brother-api's Introduction

Big-Brother is watching you

This project keeps an eye for you on your production and development servers to find out what's going on before your customers.

Big-Brother

Table of Contents


How it works

Please add some details here

Why do you need that

Please add some details here

Issue manager

Issues are handled in this github repository.

Quickstart

We're going to install and configure the latest develop build of this API.

Clone the project

First of all, you need to clone the project on your computer with :

git clone https://github.com/RignonNoel/big-brother-api.git

You can now move in the newly created folder:

cd big-brother-api

Create a virtual environment

Virtualenv provides an isolated Python environment, which are more practical than installing packages system-wide. They also allow packages to be installed without administrator privileges.

  1. Create a new virtual environment
virtualenv env
  1. Activate the virtual environment
. env/bin/activate

You need to ensure the virtual environment is active each time you want to launch the project.

Install all requirements

Requirements of the project are stored in the requirements.txt file. You can install them with:

WARNING : Make sure your virtual environment is active or you will install the packages system-wide.

pip install -r requirements.txt

The requirements-dev.txt file contains packages that are only needed during development. You should execute the previous command with this file too, unless you are deploying in production.

Configure the database

Django has a system of database migration. You first need to apply all existing "migrations" to update your local database.

python manage.py migrate

Note: The project uses a squlite3 file as database to simplify developement. Once in production, feel free to switch to whatever suits you.

Note: As described in the documentation of SQLitehttps://www.sqlite.org/whentouse.html) we can use SQLite in production for little to medium usage, like this manager.

Launch the API

You can now launch an instance of the API and visit the built-in admin website.

To login into the admin page, you'll need to create a superuser first:

python manage.py createsuperuser

Launch a local API instance with:

python manage.py runserver

You can now visit these links to validate the installation:

Test your changes

A python scripts has been created to easily run all unit tests, get code coverage and validate coding style (pycodestyle). You can use it after making changes to the API:

python tests.py

This script executes the exact same thing that would be executed by the Travis CI and Coveralls.

big-brother-api's People

Contributors

rignonnoel 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.