This is a multi project solution for exploring .NET Core 3.1 API, SQL Server, Angular 10, Angular Material and Marvel Comics REST API.
AuthApi is the authentication and user management API based on .NET Core 3.1 API, Entity Framework and SQL Server.
WebSpa is the user presentation layer based on Angular 10, Angular Material, Marvel Comics REST API and AuthApi.
First you need to create the database for the AuthApi project.
CREATE DATABASE MarvelConsole
GO
USE MarvelConsole
GO
CREATE TABLE Users
(
[Id] [uniqueidentifier] DEFAULT NEWID(),
[Name] [nvarchar](100) NOT NULL,
[Surname] [nvarchar](100) NOT NULL,
[Email] [nvarchar](100) NOT NULL UNIQUE,
[Password] [nvarchar](100) NOT NULL,
[CreationDate] [datetimeoffset](7) DEFAULT GETUTCDATE(),
[DeleteDate] [datetimeoffset](7),
PRIMARY KEY (Id)
)
GO
- Open MarvelUniverse\src\AuthApi\AuthApi.sln.
- Open appsettings.json file and review ConnectionStrings > MarvelConsoleDatabase section with your created database info.
- Start.
- Open MarvelUniverse\src\WebSpa.
- Open src/environments files and review marvelApi > KEY section with your API key info.
- IMPORTANT!! Be sure to add localhost to your authorized referrers in Marvel Commics API account.
npm install
npm start