This file contains hidden or 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
| Resources: | |
| ApiGateway: | |
| Type: AWS::ApiGateway::RestApi | |
| Properties: | |
| Description: test API Gateway | |
| EndpointConfiguration: | |
| Types: | |
| - REGIONAL | |
| BinaryMediaTypes: ['*/*'] | |
| DisableExecuteApiEndpoint: false |
This file contains hidden or 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
| Resources: | |
| LambdaFunction: | |
| Type: AWS::Lambda::Function | |
| Properties: | |
| FunctionName: | |
| Fn::Sub: "test-lambda" | |
| Description: Demo LambdaFunction for learning using cloudformation | |
| Runtime: "go1.x" | |
| Code: | |
| S3Bucket: your_s3_bucket_name |
This file contains hidden or 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
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: Deploy serverless demo application. | |
| Resources: | |
| LambdaExecutionRole: | |
| Type: AWS::IAM::Role | |
| Properties: | |
| RoleName: | |
| Fn::Sub: "test-lambda-role" | |
| AssumeRolePolicyDocument: |
This file contains hidden or 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> | |
| <div style="width: 800px" @mouseleave="getBackOriginalChart"> | |
| <Bar | |
| ref="chart1" | |
| :chart-data="chartData" | |
| :chart-options="{ | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { display: false }, |
This file contains hidden or 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> | |
| <div style="width: 800px" @mouseleave="getBackOriginalChart"> | |
| <Bar | |
| ref="chart1" | |
| :chart-data="chartData" | |
| :chart-options="{ | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { display: false }, |
This file contains hidden or 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
| <Bar | |
| :chart-data="chartData" | |
| :chart-options="{ | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { display: false }, | |
| title: { display: true, text: 'Customised chart title' }, | |
| }, | |
| }" |
This file contains hidden or 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> | |
| <Bar :chart-data="chartData" /> | |
| </template> | |
| <script > | |
| const chartData = { | |
| labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"], | |
| datasets: [ | |
| { | |
| label: "Dataset 1", |
This file contains hidden or 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> | |
| <Bar /> | |
| </template> | |
| <script > | |
| import { Bar } from "vue-chartjs"; | |
| import { | |
| Chart as ChartJS, | |
| Title, | |
| Tooltip, |
This file contains hidden or 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
| package main | |
| import ( | |
| "github.com/gin-gonic/gin" | |
| "gorm-test/controllers" | |
| "net/http" | |
| ) | |
| func main() { | |
| r := setupRouter() |
This file contains hidden or 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
| package database | |
| import ( | |
| "fmt" | |
| "gorm.io/driver/mysql" | |
| "gorm.io/gorm" | |
| ) | |
| const DB_USERNAME = "root" | |
| const DB_PASSWORD = "root" |