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.
-
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.
-
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
-
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