REST API created with django-rest-framework, This api lets users to create projects and add images for them to be rated/reviewed.
- API link:: https://looku-awards.herokuapp.com/api/
- CLIENT link:: https://looku-awards.herokuapp.com/
-
Django 4.0.4
-
Django-rest-framework
-
simple jwt(authentication)
-
CORS headers (for api cunsumption)
-
Front-end
- AngularJs 13
- Bootstrap
- Clone repo
- cd into
sturdy-doodle
- create virtual environment: (virtualenv, pipenv, conda, e.t.c)
- install all project dependencies;
pipenv install Pipfile
- Run with
python manage.py runserver
- create dot-env file
.env
add the following inside the environment file
DB_USER = <username >
DB_PASSWORD = <password >
DB_HOST = <host >
DB_PORT = <port >
DB_NAME = <dbname >
SECRET_KEY = <secret_key >
MODE = 'dev'
CLOUDINARY_CLOUD_NAME = <cloud_name >
CLOUDINARY_API_KEY = <api_key >
CLOUDINARY_API_SECRET = <api_secret >
This API can be consumed using a language of your choice.
Nb: use postman to test.
- for authentication pass in the jwt access token in http headers: 'Authorization Bearer: <acces_token>' Below are availabe endpoints:
- Register:
<link>/register/
- Login ::
<link>/login/
- Root View ::
<link>/api/
- Projects view ::
<link>/api/projects/
- View single project ::
<link>/api/projects/
- Rate view ::
<link>/api/projects/1/rate_project/
Same endpoits applies to a local running app on localhost: