This application will let users create accounts and add squirrels they would like to party with to their individual parties. Each user will have a party and can view other users parties. They will also have the ability to add squirrels from others parties to their own. Users will also be able to post messages to each other on their the party pages. The application uses the Pexels API to generate random pictures of squirrels that a user can either "Go Nuts!" or say "No Nuts!". The go nuts button will allow the user to create a profile of that squirrel and add them to their party. The no nuts button will reload the page and show a fresh image for the user.
- Clone this repository from GitHub https://github.com/chyoon2/PartySquirrelClient.Solution
- Open the downloaded directory in a text editor of your choice. (VSCode, Atom, etc.)
- Install .Net Core
- To install the REPL dotnet script, run
dotnet tool install -g dotnet-script
in your terminal. - To get an API key, create a free Pexel account.
- In the ApiHelper.cs file, add your Pexel API key on line 12 after
"Authorization",
. - Run
dotnet restore
in terminal to get all dependencies. - Run
dontnet build
in terminal to make sure project has everything required and no issues. - Run the program with the command
dotnet run
.
- You will need to have MySQL installed on your computer to start the database for this project.
- Once you have it installed open your terminal and
run mysql -uroot -pepicodus
. This will start the mysql server on your computer. - You will need to run the command
dotnet ef migrations add Initial
. This create a folder that holds information MySQL needs to create the database. - Then run
dotnet ef database update
. This will migrate the database to MySQL workbench where you can refresh the Schemas tab to make sure everything was created properly. - Then you will have the database correctly set up and you can start the project in a separate terminal that the one running mysql by running dotnet run.
Behavior | Input | Output |
---|---|---|
1. A user will be able to create an account, login and logout. | User info | Hello User! |
2. All users will have a party named after them. | User Name: Ben | Ben's Party |
3. A user will be able to view images of squirrels and decide if they want to party with that squirrel. | ||
4. A user can either choose "Go Nuts!" or "No Nuts!", "Go Nuts!" will allow the user to add party info to that squirrel and add it to their party page. | "Go Nuts!" | Name: Squeeky, Party Trick: Juggling, Party Story: Makes delicious salsa, Party Location: Pool, Party Since: 12/31/1999 |
5. A user will be able to add squirrels from a different users party to their party. | ||
6. A user will be able to post messages on other users party pages | Yo Sweet Squirrel! | "Yo Sweet Squirrel" |
- Allow users to upload their own images of squirrels
- Add user roles (Administrator, etc.)
- Allow users to see the location of party squirrels on Google Maps
No known issues. Please reach out if you have any problems.
Please feel free to contact us through GitHub (usernames: brussell36, kate-skorija, chyoon2, pagrimm) with any questions, ideas or concerns.
- C#
- .NET Core 2.2
- Visual Studio Code
- Git and Git BASH
- MySQL Workbench
- MySQL Database
- Entity Framework
- Identity
- Pexels API
This site is licensed under the MIT license.
Copyright (c) 2020 Chris Yoon, Ben Russell, Kate Skorija, Peter Grimm