https://github.com/jijojames18/homework-valuator-backend
PHP Back End for the Homework Evaluator Application
https://github.com/jijojames18/homework-valuator-backend
backend php
Last synced: over 1 year ago
JSON representation
PHP Back End for the Homework Evaluator Application
- Host: GitHub
- URL: https://github.com/jijojames18/homework-valuator-backend
- Owner: jijojames18
- License: apache-2.0
- Created: 2020-07-19T16:35:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-14T05:53:40.000Z (over 5 years ago)
- Last Synced: 2025-01-15T11:10:06.905Z (over 1 year ago)
- Topics: backend, php
- Language: PHP
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# homework-valuator-backend
The Backend module of the home work valuator project. Developed using PHP, providing REST endpoints which interact with MySQL to perform CRUD operations.
Front End Repository : [homework-valuator-frontend](https://github.com/jijojames18/homework-valuator-frontend)
### Dependencies:
• PHP
• Composer
• MySQL
### Libraries
• DotEnv (Loading environment variables)
Copy `.env.example` outside to working directory and reanme to `.env` and configure the database credentials as variables.
### Rest Endpoints
#### questions
• GET /questions/id
#### answers
• POST /answers/id/userid
### Environment Variables
• APP_ENV (development/production)
• DB_HOST
• DB_NAME
• DB_USER
• DB_PASSWORD
If `APP_ENV='production'`, the `.env` file is ignored and the variables should be set manually using the corresponding methods prescribed by your cloud provider.
## Project setup
```
composer install
```
## ER Diagram for the database
