This boilier plate includes all of the basic features that you need to start a new project. It includes the following features:
- User Registration
- User Login
- User Logout
- Swagger Documentation
- Zappa Deployment settings (AWS Lambda)
- Django 4.2.2
- Python 3.10.07
- Django Rest Framework
python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
# Clone the repo
git clone https://github.com/lukuku-dev/django-rest-boilerplate.git
# Change directory
cd django-rest-boilerplate
# See available pyton versions
pyenv install --list
# Install the python version
pyenv install 3.10.07
# Create a virtual environment
pyenv virtualenv 3.10.07 <env-name>
# Activate the virtual environment
pyenv activate <env-name>
# Please use pyenv here, if you want to attach this code with aws-lambda
# Install the requirements
pip install -r requirements.txt
# rename .env.example to .env
# Fill the variables
# Run the migrations
python manage.py migrate
# Create a superuser
python manage.py createsuperuser
# Run the server
python manage.py runserver
- search
FIXME
and fill the variables
- Create a new AWS account
- Create a new IAM user
- Create a new S3 bucket
- Create a new Lambda function
- Create a new API Gateway
- Set aws credentials in your local machine
- Set the variables in
zappa_settings.json
- Run
zappa certify
- Run
zappa deploy dev