/project-root
│── /src
│ ├── /config # Configuration files (DB, env, etc.)
│ │ ├── db.config.js
│ │ ├── env.config.js
│ │ ├── logger.config.js
│ ├── /loaders # Application bootstrapping (DB, Express, etc.)
The URL pattern for an API is generally structured to make it easy to understand the purpose and hierarchy of the resources being accessed. Here are some common best practices for designing API URL patterns:
- Use nouns to represent resources.
- Example:
/api/v1/users
,/api/v1/orders
,/api/v1/products
.
- Use HTTP methods to specify actions (GET, POST, PUT, DELETE).
chmod 600 keypair_name.pem
Change count base on your main RAM size
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
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | |
# yarn lockfile v1 | |
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.8.3": | |
version "7.8.3" | |
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e" | |
integrity sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g== | |
dependencies: | |
"@babel/highlight" "^7.8.3" |
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
{ | |
"name": "RNVideoProcessingDemo", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"android": "react-native run-android", | |
"ios": "react-native run-ios", | |
"start": "react-native start", | |
"test": "jest", | |
"lint": "eslint ." |
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
import React, {useState} from 'react'; | |
import RNFetchBlob from 'rn-fetch-blob' | |
import { | |
FlatList, | |
SafeAreaView, | |
StyleSheet, | |
Text, | |
TouchableOpacity, | |
View, | |
} from 'react-native'; |
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
import messaging from '@react-native-firebase/messaging'; | |
import PushNotification from 'react-native-push-notification'; | |
import PushNotificationIOS from '@react-native-community/push-notification-ios'; | |
import { navigate } from '@navigator/navigator'; | |
import { registerDeviceToken } from '@state/auth/ActionCreator'; | |
export const notificationHandler = data => { | |
if (data?.notify_type === 'comment') { | |
navigate('PostDetail', { | |
postId: data.target_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
- title nil | |
- meta_description nil | |
= render partial: 'shared/header', locals: { search_bar: false, fixed_top: false } | |
.container | |
%h1.booking-header | |
= t('.book_no_pay_later') | |
.row |
NewerOlder