Code Monkey home page Code Monkey logo

oc-p10's Introduction

Softdesk : une API RESTful avec Django REST

Objectif

Ce programme est un exercice proposé par OpenClassRooms dans le cadre de la formation : Développeur d'applications Python. L'objectif est de publier une application permettant de remonter et suivre des problèmes techniques, il s'agit d'un back-end performant et sécurisé, devant servir les applications sur toutes les plateformes (web, android, ios)

logo

Fonctionnalités

L'application permet de :

  • -> creer diverses projets
  • -> d'ajouter des utilisateurs à des projets spécifiques
  • -> de creer des problèmes au sein des projets
  • -> d'ajouter des commentaires aux problèmes identifiés
  • -> seuls les auteurs des projets, problèmes, commentaires peuvent les modifier ou les supprimer

Technologie utilisée

  • Le projet est développé avec le framework REST Django, il s'agit d'une API REST.
  • Les données sont sauvegardées dans une base de données sqlite3.
  • Un swagger a été utilisé pour tester les points de terminaison de l'API et la documenter

Installation

  • Téléchargez et dézippez le repository github
  • Creer l'environnement virtuel (exemple avec pipenv)
mkdir .venv
pipenv install
pipenv shell

Utilisation

  • Lancer le serveur : python manage.py runserver
  • Depuis votre navigateur habituel, l'accès à l'api se fait via l'url : http:/127.0.0.1:8000
  • Pour creer un compte administrateur, utilisez la commande : python manage.py createsuperuser
  • Pour accéder à l'administration : http://127.0.0.1:8000/admin
  • Les endpoints peuvent êtres testés ici : http://127.0.0.1:8000/schema

Documentation

  • Vous pouvez accéder à la documentation de l'API ici : http://127.0.0.1:8000/docs

oc-p10's People

Contributors

slb59 avatar

Watchers

Kostas Georgiou avatar  avatar

oc-p10's Issues

ERROR: Entering a unknown email crashes the app

When:
A user types in an email not found in the system
Then:
App crashes
Expected:
Code should be written to ensure that if something goes wrong (like the email isn't found), the error is caught and handled. Display an error message like "Sorry, that email wasn't found."
The summary should be displayed to the user when a correct email is entered.

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.