Skip to content

RickNog/15-Chirper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

15-Chirper

In this project, I built a social network website where people can register for a free account and chirp their thoughts in 240 characters or less to the world!

App Requirements

  • Users need to be able to register for an account.
  • Users need to be able to log in to their account.
  • Users need to be able to post "Chirps".
  • Users need to be able to see "Chirps" that other users have posted.
  • Users need to be able to like each others "Chirps".
  • Users need to be able to comment on any Chirp.

Pages

  • Register Page
    • Registration fields
    • Register button
  • Login Page
    • Email field
    • Password field
    • Login button
  • Main Chirp Page
    • Chirp entry field
    • Chirp list
    • Commenting functionality
    • Like functionality

Tasks

  1. Created an Entity Relationship Diagram before coding. This helped in building my application.
  2. Opened Visual Studio, created a new Solution called Chirper, with an ASP Web API project called Chirper.API.
  3. From the Package Manager Console, added the following dependencies using these commands:
    • Install-Package Microsoft.AspNet.Identity.Owin
    • Install-Package Microsoft.AspNet.Identity.EntityFramework
    • Install-Package Microsoft.Owin.Host.SystemWeb
    • Install-Package Microsoft.AspNet.WebApi.Owin
    • Install-Package Microsoft.Owin.Security.OAuth
    • Install-Package Microsoft.Owin.Cors
  4. In my models folder, created the necessary classes representing the entities I designed in step 1.
  5. Created a DataContext class in a folder called Infrastructure that inherits from IdentityDbContext.
  6. Configured the entity relationships as shown in class.
  7. Created my database using Migrations. Enable-Migrations, Add-Migration InitialCreate and Update-Database were the commands.
  8. Create my Web API controllers, one per Model class.
  9. Created my Angular application as discussed in class.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published