Medical Departures Test
Medical Departures Test
Medical Departures Test
com/swagger/
To check if the api is working :- https://medical-departures-test.onrender.com/ping
I have expanded the README.md with information on the environment setup and how to run
the API locally.
Here is the .env file that you need to use to run it locally
PORT=3000
SECRET=jkjkjkjkjkjjkjjuhbbdd
saltRounds= 10
DATABASE_URL=
postgres://yisacc:cTVuSAng8DMv1ImdkktB2gpDDVBJgSMN@dpg-cfufltda499030bdqbng-a.oregon-p
ostgres.render.com/medical_departues_test
To connect to the database and run a query locally, use the database url. I connected locally to
the database using DBeaver.
Remaining things/futures
The documentation for Swagger is still lacking; I'll update it the following day. Unit tests and
integration tests are also still unfinished. I will add both tomorrow and get back to you; please
contact me with any feedback or questions.
Instead of using methods from the object relational mapping tool, I wrote RAW queries to show
my SQL query abilities.
The SQL queries I used to create the tables are listed below. Due to the short time frame and
the desire to avoid a broad scope, they currently do not include migrations or seeders.