/cpyou

Primary LanguageC#

CP&You

Problem Solved

Choosing the parts for a new computer can be a stressful experience. You might be worried that your part selection doesn’t make sense, or that some parts might even be incompatible with each other.

This website aims to solve these issues with a dual-pronged approach:

  • A community that can suggest helpful changes
  • Built-in compatibility checking

Technologies Used

  • ReactJS
  • MUI v5
  • C#
  • .Net 8.0
  • EF Core 8.0
  • PostgreSQL 16
  • JavaScript
  • HTML5
  • CSS3
  • Emotion
  • Vite

Installation and Setup Instructions

Clone this repository, and ensure you have the following installed on your machine:

Then run the following command

dotnet tool install --global dotnet-ef --framework net8.0

Installation

Navigate to the cloned directory and run the following

dotnet user-secrets init
dotnet user-secrets set 'CPYouDbConnectionString' 'Host=localhost;Port=5432;Username=postgres;Password=<your_postgresql_password>;Database=CPYou'
dotnet user-secrets set AdminPassword password
dotnet restore
dotnet ef migrations add InitialCreate
dotnet ef database update

Then navigate to the client directory and run the following

npm install

Run Database

Run the following command in the project root directory

dotnet watch run --launch-profile https

Run Website

Navigate to the client directory and run the following

npm run dev