Code Monkey home page Code Monkey logo

phonebookspa's Introduction

PhoneBookSPA

The PhoneBook single page application will display all the information about the contacts including the name , phone number and the address. The Single plage application is comprises of React based app for the UI and Asp.net 5.0 is the backend api used to reterive the data from external api and pass the data to UI. The .Net app uses design pattern to make the changes unit testable and make it loosely coupled.

UI/View - React

The react changes are placed under the same solution within the folder "ClientApp"

Follow the below steps to setup the envrionment

  1. npm install
  2. npm start

Controller - API

The Project structure of the API in SPA is,

  • PhoneBookSPA
  • PhoneBookSPA.Entities
  • PhoneBookSPA.Interface
  • PhoneBookSPA.Services
  • PhoneBookSPA.UnitTest

PhoneBookSPA

This project holds the View (clientApp) and the core API controllers

PhoneBookSPA.Entities

This project holds the entity class for holding the data for usage with the services and the controllers

PhoneBookSPA.Interface

The interface project shows the singature of the services which are consumed in the conrollers

PhoneBookSPA.Services

The Services project implements the interface and consumes the external api for getting the data.

PhoneBookSPA.UnitTest

Project used the unit the controllers/services functions using nunit

Steps to run

  1. dotnet build
  2. dotnet test
  3. dotnet run

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.