Skip to content

NeilC/SerenataFlowers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SerenataFlowers

Notes

To get started open the SerenataFlowers.sln build it and run the SF.WebServer project. It will begin listening for requests at http://localhost:9092/ by default.

The latest SPA build is located in the web servers 'App' folder so visiting http://localhost:9092/ will serve it up.

The SPA does come with it's own development server however. To start that up, run npm run dev. The development server brings strict ES Linting, in browser error reports, Hot module reloading and many other development conveniences. It runs on http://localhost:8080/

In total there are three projects:

SF.WebServer

A self hosted owin server that hosts a WebApi server and a File Server. The WebApi server has two controllers.

  • The cart controller which contains The List, Add, Remove and Clear cart commands
  • The product controller which returns all products

This includes an in memory repository used by both itself and the Tests project.

The file server may be used to host the built SPA, just add the built distributable files of the SPA into the 'App' folder at the program root.

SF.Web

The SPA written in VueJS. This project was built in VS Code using the Vue-Cli program to create the basic template. In order to run the development version, please run npm run dev from the main directory.

To build the distributable files just run npm run build. The files are output to the dist directory.

SF.Tests

This project contains the webserver tests, written in XUnit

About

Serenata Flowers Shopping Cart Model

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published