Overview
The Directory project is the core piece of the BiobankingUK stack. Everything else in the stack serves to optionally augment the Directory.
It consists of an .NET Core MVC web application, backed by a PostgreSQL database, which interacts with an Elasticsearch server.
Setup​
ℹ Complete the instructions in Getting Started first.
Enable Corepack
- Simply run
corepack enable
in your cli
- Simply run
Install Node Packages
- Run
pnpm i
from the project root.
- Run
Add a new user
- Change directory next to the
Directory.csproj
file. - Run
dotnet run -- users add <EMAIL> <FULL-NAME> -r <ROLES> -p <PASSWORD>
- For example:
dotnet run -- users add admin@example.com Admin -r SuperUser DirectoryAdmin -p Password1!
- For local dev use you probably want the roles:
SuperUser
, andDirectoryAdmin
- being a
SuperUser
doesn't automatically put you in theDirectoryAdmin
role too. Sorry.
- being a
- See users CLI documentation
- Change directory next to the
Check Email Configuration
- by default for local development, the app will write emails to
~/temp
- See Email Sending
- by default for local development, the app will write emails to
Optional steps​
To use the Search functionality:
- Setup a local Elasticsearch instance
- See Elasticsearch, Docker recommended