An open API service indexing awesome lists of open source software.

https://github.com/raphaelapeh/image-api

A Image API with Django, Django Rest Framework, Cloudinary and Tailwind
https://github.com/raphaelapeh/image-api

api cloudinary django django-filter django-rest-framework django-taggit django-tailwind streamlit

Last synced: about 2 months ago
JSON representation

A Image API with Django, Django Rest Framework, Cloudinary and Tailwind

Awesome Lists containing this project

README

        

## IMAGE API with Django, DJANGO_REST_FRAMEWORK, Cloudinary and Tailwind CSS

technologies: django, django rest framework , Cloudinary and Tailwind

## Project setup

- Create a virtual environment
```bash
python -m venv venv
```
- Activate the environment 🕹
- windows
```bash
.\venv\scripts\activate
```
- MacOs or Linux
```bash
source venv/bin/activate
```

- install the requirements
```bash
pip install -r requirements.txt
```

- set values in .env
```python
DJANGO_DEBUG=True
DJANGO_SECRET_KEY="django-secret-key"
CLOUDINARY_API_KEY="api-key"
CLOUDINARY_NAME="cloudinary-name"
CLOUDINARY_SECRET_KEY="cloudinary-secret-key"
```

- working dir
```bash
cd src/
```
- Generate DJANGO_SECRET_KEY
```bash
python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
```

- Migrate
```bash
python manage.py migrate
```

- Run the server
```bash
python manage.py runserver
```