This is the admin user interface for the Research Software Directory. It can be used to add and update software items to the directory. The admin interface requires credentials for users to see the admin interface.
TODO:
- add notes on how to keep the dependencies updated, e.g. using
yarn audit
andyarn outdated
(#367)
This project was bootstrapped with Create React App using scripts package @nlesc/react-scripts. Original documentation here.
- Install node version
^14.0
, e.g. usingnvm
(Node Version Manager, see https://github.com/nvm-sh/nvm#install-script):curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
- restart terminal
- run
nvm install 14
- Install yarn,
npm install -g yarn
(Note: there exists a similarly named package, Apache Hadoop YARN --please ignore that, it's something else)
-
To login in to admin interface you need to set the authentication callback to
http://localhost:8000/auth/get_jwt
on https://github.com/settings/developers -
Start the services required by admin interface:
cd research-software-directory docker-compose -f docker-compose.yml -f admin/docker-compose.dev.yml up
-
New terminal
-
cd admin
-
Install the
admin
service's dependencies:yarn install
-
Start the admin service in a development server:
yarn start
. It will tell you where to go to check theadmin
interface (http://localhost:8000).
The Docker containers started with docker-compose
is a complete Research Software Directory instance on https://localhost including an admin interface. Any changes made to software/projects/etc. in the admin interface running on http://localhost:8000 will be saved in the instance and can be viewed there.
To build the app for production run:
yarn build
The deployable app will build to the ./build/
directory.
The Docker image should not be used on its own, as the code expects the backend server to be running at
/api
and the auth server to be running at /auth
.
The rsd/admin
image should be used as part of a docker-compose
, see
https://github.com/research-software-directory/research-software-directory:
cd research-software-directory
docker-compose build admin