Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 1.72 KB

README.md

File metadata and controls

30 lines (16 loc) · 1.72 KB

Equinox Web Template

This project was generated using:

dotnet new -i Equinox.Templates # just once, to install in the local templates store

dotnet new eqxweb -t --help # use --help to see options regarding storage subsystem configuration etc

To generate the C# equivalent:

dotnet new eqxwebcs -t # use --help to see options regarding storage subsystem configuration etc

To run a local instance of the Website on https://localhost:5001 and http://localhost:5000

dotnet run -p Web

To exercise the functionality of the sample TodoBackend (included because of the -t in the above), you can use the community project https://todobackend.com to drive the backend. NB Jet does now own, control or audit https://todobackend.com; it is a third party site; please satisfy yourself that this is a safe thing use in your environment before using it.

  1. The generated code includes a CORS whitelisting for https://todobackend.com. Cors configuration should be considered holistically in the overall design of an app - Equinox itself has no requirement of any specific configuration; you should ensure appropriate care and attention is paid to this aspect of securiting your application as normal.

  2. Run the API compliance test suite (can be useful to isolate issues if the application is experiencing internal errors):

    start https://www.todobackend.com/specs/index.html?https://localhost:5001/todos
    
  3. Once you've confirmed that the backend is listening and fulfilling the API obligations, you can run the frontend app:

    # Interactive UI; NB error handling is pretty minimal, so hitting refresh and/or F12 is recommended ;)
    start https://www.todobackend.com/client/index.html?https://localhost:5001/todos