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 install
If prefer to start database without docker, you can run the
database/create_local.sh
script to initialize a mySQL service and seed the database.Can also start the database docker image in
/database
/cd ./database
docker build -t ctims-db -f Dockerfile .
docker run -d -p 3306:3306 ctims-db:latest
Make a copy of the frontend environment file
apps/web/.env.local.example
cp apps/web/.env.local.example apps/web/.env
If running on different port, modify the
.env
file 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/.env
Modify the
.env
file 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-client
You can use the
schema:format
task to format the schema if there are modifications. Push the schema to the database
yarn run schema:push
Start the frontend and backend with the following target
yarn run start:backend
yarn run start-web
Access CTIMS in your browser at
http://localhost:3000
.
Last updated