In this project we create a Rest API for managing patients and appointments in a private clinic using Glorp framework in Pharo.
-
Install the PostgreSQL Database and the latest version of Pharo.
-
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.
To create tables in your database run:server := MOPClientZoneServer new. server databaseConnector: MOPPostgresDatabaseGlorpConnector new. server createTablesRunning a server:
server := MOPClientZoneServer startWith: MOPPostgresDatabaseGlorpConnector newExamples of API tests are in api_examples file.