Skip to content

everlof/RestKit-n-Django-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestKit-n-Django-Sample

This is a project created as a playground to become more familiar various frameworks. Primarily the following:

  • RestKit
  • Django
  • Django REST Framework

I've been using:

  • Python 3.4
  • Xcode 7.3.1 (Swift 1.2)
  • Check requirement.txt to find out exactly which django versions.
  • Check Podfile.lock to find out exactly which iOS library versions.

Get stuff up and running:

  1. Create the virtual environment
  2. Clone this repo
  3. Run the django server
  4. Run the iOS app

A good example of changes that must be performed in order to change a model, all the way from back-end to the front-end, is shown in 6fa5fc46a19b603005be505b967747eef2cd672b, where created and modified is added to the Quote-model.

Get stuff up and running detailed:

# Create a virtual environment
python -m venv venv

# cd to the virtual environment
cd venv

# Clone this repo
git clone https://github.com/everlof/RestKit-n-Django-Sample.git

# Activate the virtual environment
. bin/activate

# cd to the repoo
cd RestKit-n-Django-Sample/

# Install requirements
pip install -r requirement.txt

# Apply migrations
python manage.py migrate

# Run the server
python manage.py runserver

# Create a user
curl -XPOST http://127.0.0.1:8000/users/register \
-d '{"username":"tester","password":"tester","email":"test@test.com"}' \
-H "Content-Type: application/json"

# Use the app and log in with tester/tester!

About

iOS app with Djagno as backend - just for fun and educational purpose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages