This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup | |
- [x] Clone Repo | |
- [x] Navigate to function based view branch | |
- [x] Branch to a new branch - Auth | |
- [x] Create Virtual Environment - python3 -m venv env | |
- [x] Activate VE - source env/bin/activate | |
- [x] Update installed App - "rest_framework.authtoken", | |
- [x] Make Migration - python manage.py makemigrations student_app | |
- [x] Run Migration - python manage.py migrate | |
- [x] Start server - python manage.py runserver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup | |
- [x] Clone Repo | |
- [x] Branch to a new branch - Auth | |
- [x] Install - python -m pip install Django | |
- [x] Create Project - django-admin startproject student | |
- [x] Start server - python manage.py runserver | |
- [x] Create an app - python manage.py startapp student_app | |
- [x] Add app to installed | |
- [x] Create Virtual Environment - python3 -m venv env | |
- [x] Activate VE - source env/bin/activate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup | |
- [x] Install - python -m pip install Django | |
- [x] Create Project - django-admin startproject student | |
- [x] Start server - python manage.py runserver | |
- [x] Create an app - python manage.py startapp student_app | |
- [x] Add app to installed | |
- [x] Create Virtual Environment - python3 -m venv env | |
- [x] Activate VE - source env/bin/activate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Django | |
Intro and set up | |
- [x] Install - python -m pip install Django | |
- [x] Create Project - django-admin startproject blog | |
- [x] Start server - python manage.py runserver | |
- [x] View on the browser | |
- [x] Create an app - python manage.py startapp blog_app | |
- [x] Add App Route | |
- [x] Add View |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const arr = [1, 2, 3, 4, 5]; | |
const result = []; | |
const resultMAP = arr.map((item) => Number(item) * 2); | |
arr.forEach((item) => result.push(Number(item) * 5)); | |
console.log("Map", resultMAP); | |
console.log("For Each", result); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const arr = [1, 2, 3, 4, 5]; | |
const result = arr.map(item => { | |
if (item * 5 > 15) { | |
return item | |
} | |
}) | |
console.log('============ Map ==========='); | |
console.log(result); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const words = ["Njoku", "Samson", "Ebere", "Plenty"]; | |
const data = [ | |
{ label: "The Shawshank Redemption", year: 1994 }, | |
{ label: "The Godfather", year: 1972 }, | |
{ label: "The Godfather: Part II", year: 1974 }, | |
{ label: "The Dark Knight", year: 2008 }, | |
{ label: "12 Angry Men", year: 1957 }, | |
{ label: "Schindler's List", year: 1993 }, | |
{ label: "Pulp Fiction", year: 1994 }, |