Skip to content

mouhtasi/dev-cert-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developer Certification Site

This site is a proof of concept. A user may enter Python code and the site will run it securely in a sandboxed environment. The result of the code is then compared to the expected result and returned to the user. This forms the basis of a code testing site.

Getting Started

Installing

The site:

$ sudo apt-get install postgresql postgresql-client
$ pip install Django psycopg2

The backend: Debian + Apparmor + virtualenv, will add more here soon.

Deployment

$ python manage.py migrate
$ python manage.py collectstatic

Generate a new secret key and place it in bikeshare_tools/SECRET_KEY

Run the project with uWSGI:

$ uwsgi -ini uwsgi.ini

This will create a socket in the project folder which Nginx/Apache etc can proxy to.

If using nginx

location /devcert {
    uwsgi_pass  unix:/home/nap/fizzbuzzcert/fizzbuzzcert.sock;
    include     /home/nap/fizzbuzzcert/uwsgi_params;
  }

  location /devcert/static {
    alias /home/nap/fizzbuzzcert/fizzbuzzcert/static;
  }

will route for the URL domain.tld/devsite/

Built With

Authors

About

A secure developer testing and certification site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published