Pet Clinic is the backend NestJs application for a pet clinic management system. A user will be able to sign up, add pets to account, create appointments for treatments provided by the clinic. A scheduled event will run every Sunday to create appointment slots for each doctor
A live version of the application is hosted on Render. The service is deployed in free tier and will not be instantly available. Please wait a few minutes for the application to start
- Need NPM to install the packages needed for the project
- Need Git and Github account to setup and contribute to the project
- Need Docker engine to run Postgres Database in a docker container(Not needed if Postgres is installed locally)
Please run the following command to install the npm dependency packages.
$ npm install
Before running the app, you will need to run docker container to use database in your local machine. Run the following command to start the docker postgres image(Docker Desktop or Docker Engine need to be installed for this). If you have postgres installed in your system, you will not need to run the docker.
$ docker compose up -d
Create .env.development
file at the root of the project and add following keys.
DATABASE_URL="postgresql://<username>:<password>@localhost:5432/<dbname>"
DB_SYNC=true
JWT_SECRET="<add your own secret>"
To start the NestJs app, run one of the following commands.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
You can access swagger documentation at below URL after starting the development server
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Please raise a Github issue for errors or bugs.
https://github.com/ram1117/petclinic-nestjs/issues
@ram1117
ram kumar karuppusamy
- 0.1
- Initial Release
This project is MIT licensed. See the LICENSE.md file for details