About • Usage • Development • Credits • License
This repository contains TextGrader. In essence textgrader contains the various versions of a Essay and short answer evaluation system.
The system is divided as explained below:
- Frontend (NodeJS)
- Text Grader Website
- Show an User Interface with a Text Editor and a button to grade the text
- Send the text in a HTTP GET request body to Text Grader API
- Receive the HTTP response and show it to the user
- Text Grader Website
- Backend (Python - Flask)
- Text Grader API
- Receive a HTTP get request with a text content
- Transform the data in JSON and send the HTTP response
- Saves all essays into json files (for now)
- Text Grader API
Run in your terminal make up
. You can access from your browser:
- Text Grader API - http://localhost:3006/
- Text Grader Website - http://localhost:3005/
2.1. Endpoints:
-
POST /model
: receives aessay
field, containing textgrader essay and returns a object with five grades Example:-Request ``` curl -X POST -H "Content-Type: application/json" -d '{"essay": "Seu texto aqui"}' http://localhost:3006/model ``` - Response ``` { "grades": { "nota_1": 145.6, "nota_2": 141.6, "nota_3": 118.8, "nota_4": 170.8, "nota_5": 122.0 } } ```
-
To stop all services: make down
This project uses GitFlow workflow:
- Start your new feature: Make a new branch based on develop branch
- Finish your feature: Open a Pull request from your feature branch to develop
This project also uses Semantic Commit Messages:
See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
feat: add hat wobble
^--^ ^------------^
| |
| +-> Summary in present tense.
|
+-------> Type: chore, docs, feat, fix, refactor, style, or test.
More Examples:
feat
: (new feature for the user, not a new feature for build script)fix
: (bug fix for the user, not a fix to a build script)docs
: (changes to the documentation)style
: (formatting, missing semi colons, etc; no production code change)refactor
: (refactoring production code, eg. renaming a variable)test
: (adding missing tests, refactoring tests; no production code change)chore
: (updating grunt tasks etc; no production code change)
References:
- https://www.conventionalcommits.org/
- https://seesparkbox.com/foundry/semantic_commit_messages
- http://karma-runner.github.io/1.0/dev/git-commit-msg.html
Thanks for the open source projects bellow:
MIT