-
Install the extension from the marketplace
-
Write the Kerno key to wakeup Kerno
-
Kerno will automatically start indexing the codebase
-
When the codebase is indexed you can start creating integration test with Kerno
-
To create an integration tests go to any python file that has an endpoint.
-
When you identify the endpoint that you want to test, press the button Run tests with kerno that will be above the endpoint defintion line.
-
Enjoy Kerno
Example Node (Express + Prisma) codebase containing real world examples (CRUD, auth, advanced patterns, etc)
Run the following command to install dependencies:
npm installThis project depends on some environment variables.
If you are running this project locally, create a .env file at the root for these variables.
Your host provider should included a feature to set them there directly to avoid exposing them.
Here are the required ones:
DATABASE_URL=
JWT_SECRET=
NODE_ENV=production
Run the following command to generate the Prisma Client which will include types based on your database schema:
npx prisma generateRun the following command to create/update your database based on existing sql migration scripts:
npx prisma migrate deployRun the following command to run the project:
npx nx serve apiThe project includes a seed script to populate the database:
npx prisma db seedRun the following command to:
- install dependencies
- apply any new migration sql scripts
- run the server
npm ci && npx prisma migrate deploy && node dist/api/main.js