Giter Site home page Giter Site logo

django-tinder's Introduction

django-tinder ❤️

DjangoTinder is app written for fun using Django with power of GeoDjango and PostgreSQL with PostGIS extension.

It aims to simulate what backend of app like Tinder does, that is: finding people meeting nearby, sex, age, orientation, criteria.

App provides just one endpoint for finding nearby people. 🌎

The docker-compose is provided for simple setup.

how to run it?

Assuming you have docker 🐳 installed on your machine - just:

docker-compose up -d

generate random data:

this commands generates given as argument number of random users within Warsaw see for way of picking randoms the source of: api/management/commands/generate_random_users.py

docker exec -it web python manage.py generate_random_users 10000

generate 1 non-random user:

this command generates user andi with deterministic data, see source code of: api/management/commands/generate_andi_user.py

docker exec -it web python manage.py generate_andi_user

fetch from API endpoint tinder like proposals:

after calling two commands above; to get proposals matching distance, age, sex, etc. make GET call to the endpoint like this:

http://127.0.0.1:8000/api/proposals/andi/52.230/21.002/

The endpoint will return proposal for user andi.

maps widget in admin

to have nice google maps in admin fill in .env file value:

GOOGLE_MAP_API_KEY=<here_your_google_maps_key_with_js_and_geocoding_rights>

running tests:

docker exec -it web pytest

django-tinder's People

Contributors

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