This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create file api/posts/:id.ts | |
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext' | |
export const POST = async({params}: HttpContextContract) => `Viewing post with id ${params.id}` | |
export const PUT = async({params}: HttpContextContract) => `Viewing put with id ${params.id}` | |
export const GET = async({params}: HttpContextContract) => `Viewing put with id ${params.id}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use App\Support\CustomValidators; | |
class AppServiceProvider extends ServiceProvider | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# before install create user deployer | |
# adduser deployer | |
# usermod -aG sudo deployer | |
# | |
export DEBIAN_FRONTEND=noninteractive | |
# Update Package List | |
apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
{{sharedState.gallery}} | |
</template> | |
<script> | |
import Gallery from '../../js/helpers/gallery.js' | |
export default { | |
data() { | |
return { | |
sharedState: Gallery.state // is important | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |