Giter Site home page Giter Site logo

openlibrary-api's Introduction

Django book task

This is a recruitment task for NGLogic There is schema and documentation available under

http://127.0.0.1:8000/api_schema/

How to run it

create env and install dependencies

pip install -r req.txt

and then

python manage.py makemigrations
python manage.py migrate
python manage.py runserver

what is done?

  • Landing page as a form
  • Forms are Django generated and submitted via ajax
  • Backend is mostly written in FBA's to make code reusable
  • Pagination is done via JS, not Django paginator (for no reason)
  • bootstrap 5 and JQ (they were listed in the job posting)
  • form validation
  • saving to CSV
  • custom Django admin filter that lets you select a range
  • API endpoint for authors and books (with schema)
  • page doesn't reload

things that don't work

  • collecting separate data about books, should I use threading or cellery? swagger is throwing template error TemplateDoesNotExist. I could do 'DIRS': [os.path.join(BASE_DIR,'templates')], but I wanted to keep templates separated from each other

openlibrary-api's People

Contributors

winterodin avatar

Watchers

 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.