Giter Club home page Giter Club logo

employees_crud_j62i's Introduction

Employees_CRUD

Project Description : Simple Create, Read, Update, Delete Employee details

Stack: Front-End : Angular 14 - User Interface(Bootstrap v5) that calls WebAPI Back-End : Web Api ASP.NET 6, Entitiy Framework. (Code First Approach)

Programs Required:

  1. Visual Studio
  2. Visual Studio Code
  3. SQL Server

Installation:

  1. .NET 6
  2. Angular 14

To see it work :

Step 1 : Fullstack API's Solution File - Open with Visual Studio FullStack UI's Folder - Open with Visual Studio Code

Step 2 (Create Table in DB) : Open terminal in visual studio and run this command : dotnet ef database update this is to create table based on the migration folder. extra information : dotnet ef migrations add Initial ^ To create migration folder if does not exist or if you want to add more columns, tables. but of cos remember to edit the EF models etc..

Step 3: Open your SQL Server, Copy your local host address (very important), Connect to local host, make sure the employees table is inside

Step 4 (Minor Code changes):

  • In visual studio -> appsetings.json change the sever:JOSHUA\SQLEXPRESS to your own local host connection string
  • Run the WebAPI, Swagger will pop up : Check if you can access the database with API, then copy the local host url
  • In visual studio code -> src -> environments -> environments.ts -> change the baseApiURL: to your own localhost from the above
  • remember to save

Step 5 (Running the application):

  • Run WebApi, Swagger will pop up
  • In Visual Studio Code -> Top tab click on Terminal and run the command : ng serve
  • Ctrl + Click on the URL provided (If you work if angular you should know)
  • The application should be running normal

You can then proceed to test out CRUD! Remember to create your own data :)

Thank you!

Screenshots of Application 1 2 3 4

employees_crud_j62i's People

Contributors

joshcjw avatar trellixvulnteam avatar

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.