Skip to content

nikolay-pshenichny/SANDBOX-WebAPI-AngularJS

Repository files navigation

#WebApi-AngularJS

Simple Web Api & AngularJS application.

Project structure

  • DemoProject.API - Web Api
  • DemoProject.API.Tests - Tests for Web Api methods
  • DemoProject.Common - Common functionality
  • DemoProject.Model - Database model and context
  • DemoProject.Web - UI

Server-side tools

  • ASP.NET Web API
  • Entity Framework (Code First)
  • Castle Windsor

DemoProject.API is configured to use Local IIS server. Project URL is set to http://localhost/api

Client-Side tools

  • AngularJS
  • Bootstrap

DemoProject.Web is configured to use Local IIS server. Project URL is set to http://localhost/web
ApiUrl configuration is located in DemoProject.Web/scripts/app/config.js

How To

Configuration and Compilation

  • Change Database connection string (DemoProjectContext) in DemoProject.API/web.config
  • Change Storage location (StoragePath) in DemoProject.API/web.config
  • Compile the solution
  • Ensure that Virtual Directories were created in IIS ("Default Web Site\api" and "Default Web Site\web")

Testing. UI.

Use http://localhost/web

Testing. Fiddler.

Use Composer tab to create requests to endpoints.

NOTE: To get information about available endpoint visit http://localhost/api/Help

Testing. CURL.

GET files metadata:

curl.exe http://localhost/api/metadata

POST a file (upload a file):

curl.exe -X POST -F file=@TestFile.txt http://localhost/api/upload

NOTE: To get information about available endpoint visit http://localhost/api/Help

TODO

  • TypeScript
  • MassTransit and at least one native windows service
  • Test API methods with improper input data
  • Uploads validation
  • Progress bars to UI
  • Authorization

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages