Git Product home page Git Product logo

bluebadgerepo's Introduction

MousePark

This repository contains a Web API that tracks and manages theme parks and their attractions. Admins can create and manage existing attractions. Guests can view attractions and rate them on a 5-star scale. This was built as a group project submission for Eleven Fifty Academy's Software Development course and can be run locally on your computer..

Prerequisites

To run this program, you will need:

  • Visual Studio Community
  • A web browser
  • Postman or another API testing program

Running the Program

  • Clone to your local repository and open in VS Community.
  • Open Package Manager Console. Select MousePark.Data as the default project and run "update-database" in the command line to seed the database.
  • Run debugger. The API hyperlink at the top of the page will show you all available actions and test requirements.
  • Open Postman to run tests. You'll need to Register and get a token to run certain tests.
    • Admin can Post/Put/Delete objects in database.
    • Guests/unregistered users can Get lists and details of existing objects, as well as create and manage Ratings for each object.

Bug Fix

If upon running you receive an error “Cannot insert the value NULL into column ‘RatingId’”, you will need to make a small change to the Rating Table:

  • Open the SQL Server Object Explorer
  • Navigate to the MouseParkApi Database
  • Open Tables
  • Right-click on the Rating table and select "View Code"
  • Change the line “[RatingId] INT NOT NULL,” to “[RatingId] INT IDENTITY (1,1) NOT NULL,”
  • Select “Update” in the upper left corner of that window
  • Select “Update Database” on the pop-up

Authors

Resources Used

Serializing Enums

Simple User Authorization and Allowing Anonymous Users to use GET methods

More on Authentication and Authorization

Account Management

More on Account Management

Data Annotations with FK

Routing Annotations

LINQ Expressions

More on LINQ Expressions

Understanding Lambda Expressions

bluebadgerepo's People

Contributors

phebesue avatar slsnider727 avatar fkitchell avatar aphamm96 avatar

Watchers

James Cloos 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.