Self-Service 360° reviews using OpenAI.
Run on your own infrastructure.
Production Docker image tbc
You need:
- VS Code
- Remote Containers plugin installed
- Docker
Then open the repository in a VS Code Remote Container (you should be prompted to).
# Set up secrets
dotnet user-secrets set "OpenAIAPIKey" "(insert key - sign up at https://openai.com/api/ and get an API key)"
# Set up certificate for Data Protection in DB with Entity Framework
dotnet dev-certs https -ep "certificate.pfx"
# Install .net tools
dotnet tool restore
# Install packages
dotnet restore
# Log into the DB
pgAdmin:
http://localhost:5556
username: [email protected]
password: admin
connection:
host: db
username: postgres
password: postgres
# Make a db called
threesixtyplusai
# Set up the database from the Migrations
dotnet ef database update
# Optionally seed dev (see below)
dotnet run -- -seed-dev
Static Questions/Question catetories are in SeedData\SeedQuestions.json
and are provisioned as part of the Entity Framework OnModelCreating
process.
- All Error handling just redirects to the home page
- "Auth" is done with sessions
- There is a background process that is designed to delete old ThreeSixtyReviews
You can run and re-run this to reset the dev seed data.
# THIS WILL DESTROY ANY DATA CHANGES YOU HAVE MADE
dotnet run -- -seed-dev
It generates a pre-filled 360 Review:
AccessCode: E
dotnet watch
Visit localhost:5165
(Press F5)
# Regen from scratch (after deleting main schema in pgAdmin)
rm -rf Migrations && dotnet ef migrations add InitialCreate && dotnet ef database update && dotnet run -- -seed-dev
# Seed
dotnet run -- -seed-dev
# e.g. dotnet ef migrations add InitialCreate
dotnet ef migrations add
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.