https://github.com/utwo/after5app-backend
https://github.com/utwo/after5app-backend
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/utwo/after5app-backend
- Owner: Utwo
- Created: 2019-10-19T10:48:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T17:40:40.000Z (about 4 years ago)
- Last Synced: 2023-02-27T13:41:49.070Z (over 3 years ago)
- Language: PHP
- Size: 399 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# After5app backend
Restful API based app, php7 with laravel
[](https://deploy.cloud.run)
[](https://app.getpostman.com/run-collection/5b553a5fdab9037961dd)
### Config
All necessary configs are in env.example. Just copy env.example to .env
### Run with docker
```
$ docker-compose up -d
```
- start the containers
```
$ docker-compose run php bash
```
- ssh in php container and execute commands
```
$ docker-compose stop
```
- stop the containers
### Setting up this beauty!
```
$ cp .env.example .env
```
- copy .env.example to .env (don't forget to edit this file according to your needs)
First ssh in php container, then execute the commands below
```
$ composer install
```
- install all dependencies for laravel and PHP
```
$ php artisan key:generate
```
- generate a new key for your application
```
$ php artisan jwt:secret
```
- generate a new key for JWT token
```
$ php artisan migrate:refresh --seed
```
- reset current migrations, migrate the database, seed the database
```
$ php artisan optimize --force
$ php artisan route:cache
$ php artisan config:cache
```
- cache route and config (only for production or frontend work)
```
$ php artisan
```
- for a list of all available commands
### Run tests ###
```
$ phpunit
```
- run tests
### Database ###
```
$ php artisan migrate
```
- migrate the database
```
$ php artisan migrate:reset
```
- reset all migrations
```
$ php artisan db:seed
```
- seed the database with dummy data