- Notifications
You must be signed in to change notification settings - Fork0
rft-kolcsonzo/kolcsonzo-api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
REST API of a simple car rental software made for a university project.
- PHP >=5.6
- composer
Simply clone the project and install dependencies via
$ composer install
Host it via nginx/apache and rewrite every request to index.php (default .htaccess can be found in root)
Automated Docker image build is initiated on every push and result images of tags/master/develop are distributed toclearcodesolutions/kolcsonzo-api repository on Docker Hub.
The base image used by this project iswebdevops/php-nginx.
$ docker run -p8080:80 clearcodesolutions/kolcsonzo-api
By default the nginx listens on port number80 for HTTP requests.
Configuration is possible via environment variables:
Environment variable | Example | Description |
---|---|---|
DB_HOST | my-mysql | Hostname of the mysql database |
DB_NAME | car_rental | Name of the database to be used |
DB_USER | car_rental | Username to access the database |
DB_PASSWORD | supersecret | Password to access the database |
You can find example request/response bodies for every endpoint:
Our task was to create a working software in a team. We had to separate the whole project into two pieces: API and front-end UI. You can find the front-end UI here:rft-kolcsonzo/kolcsonzo-ui