Running CTIMS Application without Docker
CTIMS uses a mono repo structure, to set up CTIMS for local development, follow these steps:
Clone the repository
Install the dependencies
yarn installIf prefer to start database without docker, you can run the
database/create_local.shscript to initialize a mySQL service and seed the database.Can also start the database docker image in
/database
/cd ./databasedocker build -t ctims-db -f Dockerfile .docker run -d -p 3306:3306 ctims-db:latestMake a copy of the frontend environment file
apps/web/.env.local.example
cp apps/web/.env.local.example apps/web/.envIf running on different port, modify the
.envfile with any environment variables or port number changesMake a copy of the backend environment file
apps/api/.env.example
cp apps/api/.env.example apps/api/.envModify the
.envfile with the necessary keycloak environment variables.If there are changes to the CTML schema, use Prisma ORM to initiate the database, first generate the Prisma client
yarn run schema:generate-clientYou can use the
schema:formattask to format the schema if there are modifications. Push the schema to the database
yarn run schema:pushStart the frontend and backend with the following target
yarn run start:backendyarn run start-webAccess CTIMS in your browser at
http://localhost:3000.
Last updated