Skip to content

Instantly share code, notes, and snippets.

View joviman69's full-sized avatar

Jose Contamina joviman69

  • Zaragoza
View GitHub Profile
@joviman69
joviman69 / ajax-exercises.txt
Created January 29, 2018 21:31 — forked from pamelafox/ajax-exercises.txt
AJAX Exercises
Exercise: Nutrition Facts
Create an empty webpage.
Download nutrition.xml from https://gist.github.com/3000322 and place in your project folder.
Use AJAX via jQuery or JS API to fetch the file into the page.
Create a table. For each <food> in the XML file, create a row in the table with the food name and nutritional facts - serving size, calories, carbs.
Bonus: Use the tablesorter jQuery plugin to make the table sortable by the nutritional facts.
Exercise: Lady Gaga News
@joviman69
joviman69 / django-postgresql-gunincorn-nginx-pyenv-ubuntu-16.04.md
Created June 7, 2018 21:14 — forked from kasappeal/django-postgresql-gunincorn-nginx-pyenv-ubuntu-16.04.md
How to deploy a Django app with PostgreSQL + Gunicorn + Nginx using pyenv on Ubuntu Server 16.04

How to deploy a Django app with PostgreSQL + Gunicorn + Nginx using pyenv on Ubuntu Server 16.04

This guide shows how to setup a production environment for a Django application using PostgreSQL as database, Gunicorn as application server and Nginx as http server using Ubuntu Server 14.04 as Operative System.

Install PosgreSQL, Nginx, Git and Circus

Install PostgreSQL and Nginx using:

sudo apt-get install -y postgresql-9.5 postgresql-contrib-9.5 postgresql-server-dev-9.5 nginx git circus make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils python-setuptools