Momentum logo
Team 5 Classroom

REST APIs and Django

Posted on Nov 16th, 2020

Today we’re learning about HTTP requests and responses, REST, and the Django REST Framework.

Assignment

Complete the official Django REST Framework tutorial.

DO NOT follow their directions for “Setting Up a New Environment.” Instead create a new directory and inside that directory, run:

pipenv --three
pipenv shell
pipenv install django
pipenv install djangorestframework
pipenv install pygments
django-admin startproject tutorial
cd tutorial

You can pick things up starting with the line “Once that’s done we can create an app that we’ll use to create a simple Web API.”

Resources

FE - Intro to React

Posted on Nov 10th, 2020

Today, we’ll start on our journey into React.

Assignment

Complete this tutorial for React. This will show you the most modern way to build React apps. This project will be in Git, but you will use a repository you make.

If you finish this and would like a second exercise, I recommend one of these other tutorials:

Resources

BE -- Django Models

Posted on Nov 10th, 2020

Today we’ll be focusing on making sure we understand all the capabilities of Django models.

Assignments

By Thursday, you should have Habit Tracker done. This includes the following new and previous stretch goals:

  • One view that adds or updates the daily record for a date. This view should handle the situation that you are entering a new record for a date by updating/replacing the current record.
  • On a page for a habit, you should be able to see your total count across all days as well as your best day and average day.
  • If a user is missing a record for a habit for the previous day, show them a message on their homepage that lets them know and asks them to put in the record. Make it easy to jump from that message to the form to enter the data.
  • All views should implement the correct security features. Users shouldn’t be able to see, create, update, or delete habits or records for each other.

Resources

FE - Return to JavaScript

Posted on Nov 9th, 2020

Today we’re returning to JavaScript! We’re going to have a refresher before diving into React later this week.

Setup

By the end of today, you need to make sure you have the following set up on your machine:

  • Node & npm
  • create-react-app
  • VS Code extension for JSX and Standard.js
  • Exercism

Assignments

Resources