Skip to content

aucontraire/cleo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cleo

Testing locally

To run the server:

$ DB_NAME=cleo_db DB_USER=user_00 DB_PASSWORD=user_00_pwd HOST=localhost PORT=3306 SECRET_KEY='PutYourSecretKeyHere' python3 manage.py runserver 0:5000

To run the main tests:

$ DB_NAME=cleo_db DB_USER=user_00 DB_PASSWORD=user_00_pwd HOST=localhost PORT=3306 SECRET_KEY='PutYourSecretKeyHere' python3 manage.py test service

To run the API tests:

$ DB_NAME=cleo_db DB_USER=user_00 DB_PASSWORD=user_00_pwd HOST=localhost PORT=3306 SECRET_KEY='PutYourSecretKeyHere' python3 manage.py test api

Models

  • Family (references up to two users representing the parents)

    • id
    • created_at
    • updated_at
    • due_date (optional)
    • birth_date (optional)
    • baby_gender (optional)
    • main_address
    • company (foreign key)
    • guide (foreign key)
  • User

    • id
    • created_at
    • updated_at
    • first_name
    • last_name
    • phone_number
    • email
    • address
    • activation_code (used when setting the password the first time, randomly generated when the user is first created)
    • password (encrypted)
    • family (foreign key)
  • Guide

    • id
    • created_at
    • updated_at
    • first_name
    • last_name
    • phone_number
    • email
  • Company

    • id
    • created_at
    • updated_at
    • name
    • address

API Endpoints

User

Company

Family

Guide

About

Django REST Framework API implementation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages