clinic_rest_api

Description

Rest API for managing a private clinic using Glorp framework in Pharo

Details

Source
GitHub
Dialect
pharo (25% confidence)
Created
Nov. 10, 2021
Updated
Nov. 10, 2021

Categories

Web Database

README excerpt

In this project we create a **Rest API** for managing patients and appointments in a private clinic using **Glorp** framework in **Pharo**. <br>

#### Prerequisites, fast setup
* Install the *PostgreSQL* Database and the latest version of *Pharo*. <br>
* Create a new Pharo image or open an existing one and load all three package into it. All required packages will be loaded automatically.
* Tests of models and services are provided alongside in the test package.  
* Here is an example of manual server setup. <br>
	To create tables in your database run:
	```
	server := MOPClientZoneServer new.
	server databaseConnector: MOPPostgresDatabaseGlorpConnector new.
	server createTables
	```
	Running a server:
    ```
    server := MOPClientZoneServer startWith: MOPPostgresDatabaseGlorpConnector new
    ```

    Examples of API tests are in **api_examples** file.
← Back to results