A WIP project
View
·
Report Bug
·
Request Feature
Table of Contents
TBC
| Environment | Internal URL | Public URL | Status |
|---|---|---|---|
| Production | https://sap-public-production.teacherservices.cloud | https://beta.schoolprofiles.education.gov.uk | |
| Test | https://sap-public-test.test.teacherservices.cloud | https://test.schoolprofiles.education.gov.uk |
- .NET 8.0 SDK
- Node.js 22.x (for building frontend assets)
- Docker Desktop (optional, for containerized development)
- Visual Studio 2022 or Visual Studio Code (recommended)
git clone https://github.com/DFE-Digital/sap-public.git
cd sap-publicdotnet restorecd SAPPub.Web
npm install
cd ..The npm install command automatically runs a postinstall script that copies GOV.UK Frontend and required libraries from node_modules to wwwroot/lib/.
cd SAPPub.Web
dotnet runThe application will be available at http://localhost:3000
- Open
sap-public.slnin Visual Studio - Press
F5to run with debugging (orCtrl+F5without debugging) - The application will launch in your default browser
- Open the project folder in VS Code
- Press
F5to start debugging - Select ".NET Core Launch (web)" configuration
- Navigate to
http://localhost:3000
docker build -t sappub:latest .The Docker build process:
- Assets stage: Builds frontend assets using Node.js
- Build stage: Compiles .NET application
- Final stage: Creates minimal runtime image
docker run -p 3000:3000 sappub:latestThe application will be available at http://localhost:3000
In Visual Studio, you can run the tests using the Test Explorer.
To run the Playwright tests in headed mode, configure your test run to use the playwright.runsettings file.
In Visual Studio:
- Open the Test menu
- Select Configure Run Settings
- Choose Select Solution Wide Run Settings File
- Select
playwright.runsettings
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt for more information.
Project Link: https://github.com/DFE-Digital/sap-public