Skip to content

JeonSoohyun27/PRACTICE-DRF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build a Backend REST API with Python & Django

Skills

Python

Django

djangorestframework

Aws

Git

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

SSH Key Management

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"

Django Management Commands

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

AWS Public IPv4 DNS

ec2-3-38-151-241.ap-northeast-2.compute.amazonaws.com/api

About

Source code for profiles REST API course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published