This will use SQLite database as default one, located in server/dbfiles
$ npm install
$ npm run migrate
$ npm run seed
$ npm run dev
And then browse to http://localhost:4001/.
The default credentials are: root / pwd - for admin access. readonly / pwd - for read only access.
- Copy
.env.example
to.env
in theregistry
directory - Set
DB_CLIENT
tomysql
- Ensure mysql service is up by running
docker compose up mysql
in the root folder - Start application with
$ npm install
$ npm run migrate
$ npm run seed
$ npm run dev
- Copy
.env.example
to.env
in theregistry
directory - Set
DB_CLIENT
topg
- Ensure mysql service is up by running
docker compose up postgres
in the root folder - Start application with
$ npm install
$ npm run migrate
$ npm run seed
$ npm run dev
$ npm run reset
This command ignores .env
file
$ npm run test
Assuming database is up via docker-compose
This command ignores .env
file
$ npm run test:mysql
Assuming database is up via docker-compose
This command ignores .env
file
$ npm run test:postgres
To set the session cookie as secure, set the environment variable AUTH_COOKIE_SECURE=true. Note that you will need to use an HTTPS forward proxy to access the registry admin panel.