First generate app with Ignite CLI
"react-native": "0.59.9",
"react-native-gesture-handler": "^1.4.1",
"react-native-reanimated": "^1.2.0",
"react-navigation": "^4.0.5",
"react-navigation-drawer": "^2.2.1",
import apisauce from 'apisauce' | |
const headers = { | |
'Content-Type': 'application/json', | |
'Authorization': 'Token 31beacea1ac15388c00c3eff86c3231b/LQ0W9fSPOrbdeYZSrlFSChSRmYLNhGUY//GvEXfRZmDH6PzDdW8D1rlOMIJj2zX', | |
} | |
// our "constructor" | |
const create = (baseURL = 'http://localhost:3333/api/client/v1') => { | |
const api = apisauce.create({ |
const HttpStatus = require('http-status-codes') | |
module.exports = function api(data, code) { | |
const { req, res } = this | |
const response = { | |
response: { | |
status: code, | |
message: HttpStatus.getStatusText(code), | |
url: `${req.protocol}://${req.hostname}${req.originalUrl}` |
import React, { Component } from 'react'; | |
import { | |
View, | |
Text, | |
StatusBar, | |
TouchableOpacity | |
} from 'react-native'; | |
import styles from './styles' | |
import colors from './styles/data/colors' |
<template> | |
<div> | |
<div v-for="(item, index) in data" :key="index" @click="onCheck(index)" :class="{active: item.checked}"> | |
</div> | |
</div> | |
</template> | |
<script> | |
export default { | |
data() { |
Follow this step to setup NodeJS => https://gist.github.com/DeVoresyah/56f545dba4b4120bc1060ff9eed45060
.tar.gz
file)/opt
Example:Follow official instruction from this GitLab article : https://gitlab.com/help/user/project/repository/gpg_signed_commits/index.md
based on my experience, if you're linux user I think that step is enough
if you get error like this
error: gpg failed to sign the data
Follow official instruction from this GitLab article : https://gitlab.com/help/user/project/repository/gpg_signed_commits/index.md
based on my experience, if you're linux user I think that step is enough
if you get error like this
fatal: failed to write commit object```
docker-compose exec mysql bash
to open mysql bashmysql -uroot -proot
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
ALTER USER 'default'@'%' IDENTIFIED WITH mysql_native_password BY 'secret';
localhost:8080
ln -s /opt/lampp/bin/php /usr/bin/php
php -v