Coder Social home page Coder Social logo

lyte_testtask's Introduction

Lyte TestTask

Challenge

  1. Create a new web application using django

  2. Scrape the Eventbrite API for public events

    https://www.eventbrite.com/developer/v3/endpoints/events/

    Don't scrape everything (unless you want to) just scrape enough to finish the rest of the project.

  3. Store and/or structure the events that you scrape into your django application

  4. Inside your django app, create a searchable api endpoint (returns json) allow the api request to search for event name, event start date, organizer name, ticket cost.

  5. Inside your application, create 1 API endpoint that accepts json that allows a user to update the locally stored event record, create some arbitrary validations.

  6. Send us the code and the url to your hosted application.

Install

  1. Create .env file in root folder with following contents. Replace the appropriate values:
#DEBUG=True
SECRET_KEY=your-secret-key
JWT_SECRET_KEY=your-jwt-secret-key
#APP_WSGI_APPLICATION=app.wsgi.application # with DEBUG=True
APP_WSGI_APPLICATION=app.wsgi:application
DATABASE_URL=postgresql://lyte_user:secret@database:5432/lyte_app
CELERY_BROKER_URL=amqp://lyte_user:secret@rabbitmq:5672/
CELERY_TASK_ALWAYS_EAGER=True
CELERY_LOG_LEVEL=info
ELASTICSEARCH_URL=http://elasticsearch:9200/
ALLOWED_HOSTS=*
TIME_ZONE=Europe/Minsk
EVENBRITE_KEY=your-eventbrite-key
EVENTBRITE_SECRET=your-eventbrite-secret
EVENTBRITE_OAUTH_TOKEN=your-eventbrite-oauth-token
EVENTBRITE_SEARCH_LATITUDE=events-latitude
EVENTBRITE_SEARCH_LONGITUDE=events-longitude
EVENTBRITE_SEARCH_WITHIN=15km
  1. Run docker-compose up --build -d

Entrypoints:

- /api/events           [GET]
- /api/events/<pk>/     [GET, PUT]
- /api/events/search/   [POST]  (You can find examples in ./requests)
- /api/signin/          [POST with username & password (json)]
- /api/refresh/         [POST with token (json)]
- /api/verify/          [POST with token (json)]
- /admin/               (as usual :) )

lyte_testtask's People

Contributors

verticalhorizon avatar dependabot[bot] avatar

Watchers

James Cloos 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.