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 enablein your cli
- Simply run
Install Node Packages
- Run
pnpm ifrom the project root.
- Run
Add a new user
- Change directory next to the
Directory.csprojfile. - 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
SuperUserdoesn't automatically put you in theDirectoryAdminrole 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