Skip to content

domshyra-s-playground/baseRtkQueryApp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Web Api

Basic Spa app with RtkQuery, React hook forms, and a .net backend

Grabs spotify playlists based on appsettings Spotify:Username value. Has a form and index page to interact with. If you don't have a spotfiy dev account go here

Written in .Net and react

deployed to https://www.domshyra.com

There are a few examples of how this project has progressed or the other technologies that have improved over time

Here is a sample version in containers

Here is a the upgrade to rtkQuery

Screen shots

Basic spotify api interaction

image

Form Items

Here are some of the Form items in this application that demo basic CRUD operations. image

Form for adding a rec

image

Getting Started

I recommend using VS Code and opening the API folder and the Web folder each in seprate vs code instances.

API

First navigate to the api folder

might have to run dotnet dev-certs https --trust for api

Spotify will only work with a usersecrets file containing

{
	"Spotify:ClientId": "SpotifyClientId",
	"Spotify:ClientSecret": "SpotifyClientSecret"
}

run the following commands to add secrets.

dotnet user-secrets init

dotnet user-secrets set "Spotify:ClientId" "SpotifyClientId"

dotnet user-secrets set "Spotify:ClientSecret" "SpotifyClientSecret"

Database

This project uses a local database

Make sure to have the latest version of the dotnet ef tool. See here for more information here

in order to set up the local db run dotnet ef database update

For more information on how to use the database and ef migrations see here

Running

in vscode use ".NET core launch"

Web

First navigate to the Web folder

run npm install

run npm start

in vscode use "Launch Chrome against localhost" to view the website or naviagate to the url webpack outputs in the npm start command

About

A sample project used to be forked for other React POC's

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 54.1%
  • C# 43.2%
  • HTML 1.7%
  • CSS 1.0%