Giter Site home page Giter Site logo

izeberg-test's Introduction

generate graph for docker-compose


Table Of Content

Remarques

je suis parti du principe que les données envoyé par l'utilisateur sont valides

personnellement j'aurais fait queLQues modifications pour respecter les standards

  • j'ai plus tendance a ne pas mettre /add/ /remove/ dans les urls et utiliser les verbes rest

cependant gardant votre postulat

  • la route POST /api/group/<type>/add/

    • le type ne devrait pas etre dans l'URL mais dans un payload ce qui permettrait aussi de pouvoir ajouter plusieurs types et de limiter les appels API et a la DB
    • une route PATCH /api/group/update devrait etre creer pour ajouter des groupes a un user existant
  • la route POST /api/group/<type>/remove/ devrait utiliser le verb DELETE

Docker Usage

make build puis make dev

le volume sockets contient le socket uwsgi qui permettrait de connecter l'application a un reverse proxy

Postman

ayant un soucis avec la fonctionnalite browsable API je vous fournit une collection postman izeberg.postman_collection.json pour faciliter le test de l'API

Evolution

  • ajout de tests unitaire
  • ajout de documentation
  • ajout de tests fonctionnels via postman
  • ajouter des managers dans les models pour centraliser les requetes et ne pas en avoir dans les serializers et les views
  • affiner les retour HTTP
  • revoir le typing (ajouter entre autres des custom datatypes)
  • retravailler le panel admin
  • mettre de l'HATEOAS

Admin panel

http://127.0.0.1:8080/admin/

  • user admin
  • password admin

Makefile

$ make help
make[1]: Entering directory '/mnt/d/onedrive/tests-tech/izeberg'
Hello to the Makefile

target                                   help                                                                                                 usage
------                                   ----                                                                                                 ----
build                                     build container                                                                                      build
connect-dev                               connect on dev container                                                                             connect-dev
create-admin                              create admin user
dev                                       run application on dev configuration without mounted sources                                         dev
down                                      run application on dev configuration without mounted sources                                         dev
help                                      This help dialog                                                                                     help
migrate                                   migrate models to database                                                                           migrate
outdated                                  outdated python packages                                                                             outdated
pre-commit                                run pre-commit                                                                                       pre-commit
prune                                     remove all stuff associated to project on docker                                                     prune
startapp                                  create new django app                                                                                startapp app_name#{app_name}
wsgi                                      run application on wsgi mod                                                                          wsgi
make[1]: Leaving directory '/mnt/d/onedrive/tests-tech/izeberg'

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.