Code Monkey home page Code Monkey logo

photoapi.solution's Introduction

Photo API and Pinterest Clone MVC Website

C#/.NET Core API that allows access to photo URLs. Current version: 04.01.20

By Krista Rutz, Sarah "Sasa" Schwartz, Adela Darmansyah


Table of Contents

  1. Description
  2. Setup/Installation Requirements
  3. Specifications
  4. Known Bugs
  5. Technologies Used
  6. License

WHAT WE WORKED ON 03.30.20
  • PhotoApi.Solution application

    • Scaffolding an API using .NET
    • Adding CRUD functionality to our photo controller
    • Using parameters in GET requests to filter results from the database
    • Matching usernames from POSTs to PUT/DELETE requests
    • Parsing database objects to match parameter queries (with #hashtags)
    • Using Data Annotations, including a RegEx data expression
    • Attempted to integrate many-to-many relationships, before realizing this is better suited to NoSQL databases
WHAT WE WORKED ON 03.31.20
  • PhotoApi.Solution application

    • Reviewed weekend readings and finish this week's readings
    • Styled our app to act like pinterest and show real photos
    • Finished CRUD functionality with MVC
    • Built pagination into the api photosController
WHAT WE WORKED ON 04.1.20
  • PhotoApi.Solution application

    • Added ability to count the number of photo objects returned from API
    • Access this count from our MVC and display it dynamically in the view
    • Add pagination functionality to our MVC Client
    • Added search by tag with compatibility with pagination
WHAT KRISTA WORKED ON 04.2.20
  • PhotoApi.Solution application
    • Added Identity and configured EF and MySQL to PinterestClone project
    • User authentication & authorization required for C-U-D but not R
    • Account controller and views
    • Some style changes to forms and image gallery
  • Other
    • Team week meetings
    • troubleshooting MySQL and .Net Core versioning
Still left to do...
  • (PinterestClone) Create MVC part of our app

    • Users/account login (remove "fixed" username with photo posts)
    • Index for a specific user's photos?
  • Swagger/any documentation

  • API versioning (Adela?)

  • (PhotoApi) Add token-based authentication

  • PinterestClone format Navbar --
    • "PinterestClone": index home - show a landing page/splash page
      • no API call
    • "Home": photos index - shows all photos
      • API GET - getAll()
    • "You/yourname": photos index with parameter passed - API GET - getAll(userName = "my_name")

Description

C#/.NET Core API that allows access to photo URLs. This API includes all CRUD functionality to create, view, update, and delete photos in the database.

Installation Requirements

  • Clone the repository on Github
  • Open the terminal on your desktop
  • $git clone "insert your cloned URL here"
  • Change directory to the PhotoApi directory, within the PhotoApi.Solution directory
  • $dotnet restore
  • Recreate my database structure with migration:
    • $dotnet ef migrations add Initial
    • $dotnet ef database update
  • Call this API with your web application or test out the requests using Postman.

User Stories

  • As a user, I want to be able to GET all photos related to a specific tag.
  • As a user, I want to be able to POST photos to a specific tag.
  • As a user, I want to be able to see a list of all tags.
  • As a user, I want to input date parameters and retrieve only photos posted during that timeframe.
  • As a user, I want to be able to PUT and DELETE photos, but only if I posted them.

Known Bugs

  • No known bugs

Technologies Used

  • C#
  • .NET

License

  • This software is licensed under the MIT license.

photoapi.solution's People

Contributors

kristarutz avatar seschwartz8 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.