This is a simple example of how to use Admiral with an Express server.
-
Install dependencies for the Express Server.
yarn install
-
Setup Database.
yarn prisma:generate yarn prisma:migrate dev
-
Start Express Server.
yarn dev
-
Install dependencies & start Admiral.
Navigate into the example’s directory and install its dependencies.
cd admiral yarn install yarn build cp .env.example .env yarn dev
-
Enjoy Admiral.
Visit http://localhost:3000
Credentials:
Login: [email protected] Password: password
- The example uses Express to serve API.
- The example uses Prisma to manage the database. You can find the schema in
src/prisma/schema.prisma
. You can also find the seed data insrc/prisma/seed.ts
.
admiral/
- Admiral Adminsrc/
- Express Serversrc/prisma/
- Prisma Databasepackage.json
- dependencies and scriptstsconfig.json
- TypeScript configuration