Giter Site home page Giter Site logo

codepulse.api's Introduction

CodePulse.API

API for learning Angular

From this course: https://www.udemy.com/course/real-world-app-angular-aspnet-core-web-api-and-sql/

You must also clone this repository and follow the setup: https://github.com/GregFinzer/CodePulse.UI

Development Environment Setup for the API

Install .NET 7 SDK

https://dotnet.microsoft.com/en-us/download

Or Install with Chocolatey

choco install dotnet-7.0-sdk

Install Visual Studio 2022

https://visualstudio.microsoft.com

Choose workloads

  • ASP.NET and Web Development
  • Data Storage and Processing

Or Install one of these with Chocolatey

choco install visualstudio2022community
choco install visualstudio2022professional
choco install visualstudio2022enterprise

Then install the workloads with Chocolatey

choco install visualstudio2022-workload-netweb	
choco install visualstudio2022-workload-data

Install SQL Server Developer Edition

https://www.microsoft.com/en-us/sql-server/sql-server-downloads

Choose Basic

Install SQL Server Management Studio or Database .NET

SQL Server Management Studio

https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16

Or install with Chocolatey

choco install sql-server-management-studio

Database.NET

https://fishcodelib.com/database.htm

Or install with Chocolatey

choco install databasenet

Preparing the database

  1. In Visual Studio Open the NuGet Package Manager Console.
  2. Run the command: update-database -context "AuthDbContext"
  3. Run the command: update-database -context "ApplicationDbContext"
  4. In SSMS or Database.NET run the script that is in the path: scripts\seeding+blogs.sql

Run the application

Click the play button in Visual Studio to bring up the Swagger for the application. The Get endpoints do not need authorization but the Post, Put, and Delete operations require an authorization token. You can use postman to login and get the token and then use the Post, Put and Delete endpoints.

The admin user is:

User Name: [email protected]

Password: Password1!

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.