Age Estimation API
Hello geeks,
Hmm, it's Saturday and I decided to learn django by building an API around my school project.
With my final year project, my project mate and I got to work on a research paper to prove upon an age estimation model.
Atm, I will give a more detail writeup for my project but today 03/09/2022, I decided why not have a mobile client to utilize the model. It's just sitting on my computer.
the model will be deployed to Heroku and the app will soon be developed. link to the app will be provided soon for y'all geeks
first you'll need to install django, i prefer conda to manage my python envs and packages.
- let's create virtual environment, you don't want conflicts with packages and python versions
you can use any other python modules to create a environment to work in.
conda env create -n name
- install django, django rest framework
conda install django conda install djangorestframework
- now let's run the server. change directory into root where manage.py is found
migrate database models to set it up
python manage.py migrate
supersuser to handle administration stuff
python manage.py createsuperuser
- finally, run server
python manage.py runserver
- how to use API
for linux geeks, using your trusted curl
$ curl 127.0.0.1/about/ --> access about
$ curl 127.0.0.1/v1/img/ --> get all images