Python
Django
djangorestframework
Aws
Use the below Git commands in the Windows Command Prompt or macOS Terminal.
Configure default email and name
git config --global user.email "your@email.com"
git config --global user.name "Your Name"
Initialise a new Git repository
git init
Commit changes to Git
git add .
git commit -am "Commit message"
Set Git remote
git remote add origin <URL TO PROJECT>
git push -u origin master
Push changes to GitHub
git push origin
The below commands are used to manage SSH keys on your local development machine.
Checking for existing SSH key
ls ~/.ssh/
Print contents of public key
cat ~/.ssh/id_rsa.pub
Generate new SSH key on your local machine
ssh-keygen -t rsa -b 4096 -C "EMAIL ADDRESS"
Create new Django project
django-admin.py startproject profiles_project .
Create new Django app
python manage.py startapp profiles_api
Start Django development server
python manage.py runserver 0.0.0.0:8000
Create database migrations file
python manage.py makemigrations
Run migrations
python manage.py migrate
Create new superuser
python manage.py createsuperuser
ec2-3-38-151-241.ap-northeast-2.compute.amazonaws.com/api