Have your vaccination records always handy. With our app you can store all the details about your vaccinations during all periods of your life in an easy way. No more keeping vaccination cards in drawers!
- This API is designed to work with a mobile application. Please, e-mail me if you want to contribute.
This is a Laravel 6 application.
To install this application, you need to have PHP >= 7.2.0 and Composer installed on your machine.
- Clone this repository or download the zip file.
- Navigate to the project directory and run
composer installto install the dependencies. - Copy the
.env.examplefile to.envand fill in your database credentials and other settings. - Run
php artisan key:generateto generate an application key. - Run
php artisan migrateto create the database tables. - Run
npm installto install the front-end dependencies. - Run
npm run devto compile the assets.
To run the application locally, you can use the php artisan serve command to start a development server at http://localhost:8000 (please note that default port can be different).
Alternatively, you can configure your web server's document root to be the public directory and access the application from your browser.
-
Token
-
- Accept
application\json
- Accept
-
Authorization `Bearer Token` - `Token` <token> Request Headers - Accept `application\json` -
Body must content the following fields: - name (string, required, max:255) - surname (string, required, max:255) - email (string, required, unique) - password (string, required) - cpf (numeric, required, size 11, unique) - date of born (YYYY-MM-DD, required) - gender (character, [m, f or o], max:1) - state (string, max:2) - city (string, max:255)Body (form data) must content the following fields: - email (string, required, unique) - password (string, required)Authorization `Bearer Token` - `Token` <token> Request Headers - Accept `application\json` -
Body must content the following fields: - name (string, required, max:255) - surname (string, required, max:255) - email (string, required, unique) - password (string, required) - cpf (numeric, required, size 11, unique) - date of born (YYYY-MM-DD, required) - gender (character, [m, f or o], max:1) - state (string, max:2) - city (string, max:255) -
Authorization `Bearer Token` - `Token` <token> Request Headers - Accept `application\json` -
Body must content the following field: - email (string, required, unique) -
Authorization `Bearer Token` - `Token` <token> Request Headers - Accept `application\json` -
Body must content the following fields: -title (string, required, max:255) -description (string, max:255) -batch (string, max:255) -total_doses_number (numeric, required, min:1, max:10) -dose (numeric, required, min:1, max:10) -life_stage (enum, [newborn, child, teen, adult or elder]) -frequency (numeric) *in days -created_at (YYYY-MM-DD HH:MM:SS) -
Body must content the following fields: -title (string, required, max:255) -description (string, max:255) -batch (string, max:255) -total_doses_number (numeric, required, min:1, max:10) -dose (numeric, required, min:1, max:10) -life_stage (enum, [newborn, child, teen, adult or elder]) -frequency (numeric) *in days -created_at (YYYY-MM-DD HH:MM:SS)
To deploy the application to your server, you need to follow these steps:
- Upload the project files to your server using FTP or SSH.
- Set the permissions of the
storageandbootstrap/cachedirectories to be writable by your web server. - Run
composer install --optimize-autoloader --no-devto install the dependencies and optimize the autoloader. - Run
php artisan config:cacheandphp artisan route:cacheto cache the configuration and routes. - Run
npm run productionto compile and minify the assets for production.
This application is open-sourced software licensed under the MIT license.
Thank you for considering contributing to the VacinApp! If you have any questions, suggestions or issues, please contact us at brandaolopes.dev@gmail.com
