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
// My schema for E-learning system for my school | |
directive @isAuthenticated on FIELD | FIELD_DEFINITION | |
directive @hasRole(role: String) on FIELD | FIELD_DEFINITION | |
directive @permit(code: String) on QUERY | FIELD | FIELD_DEFINITION | |
directive @private on FIELD | FIELD_DEFINITION | |
enum ContestType { | |
PRIVATE, | |
PUBLIC |
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
let imageUrl; | |
let key; | |
let uploadImg = player.img; | |
const newPlayer = { | |
name: player.name, | |
settlement: player.settlement, | |
settlementId: player.settlementId, | |
extension: player.img === undefined ? "" : player.img.name.slice(player.img.name.lastIndexOf('.')) | |
}; |
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
wget https://raw.githubusercontent.com/enteam/enfunc/master/docker-compose.yml | |
docker-compose up -d |
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
yarn global add enfunc-cli |
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
yarn init |
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
const runtime = require('./runtime.js'); | |
module.exports.helloWorld = runtime.functions.onRequest(async (req, res) => { | |
res.json({ | |
message: 'Hello World!' | |
}) | |
}); |
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
module.exports = { | |
functions: { | |
onRequest: (callback) => { | |
return { | |
callback: callback | |
}; | |
}, | |
onApp: (app) => { | |
return { | |
callback: app, |
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
# Deploy your app | |
export ENFUNC_HOST=http://localhost:3000 # without a trailing slash | |
enfunc deploy --app my-first-app |
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
git clone $REPO_URL app | |
cd app | |
git checkout $COMMIT_SHA | |
wget https://dl.minio.io/client/mc/release/linux-amd64/mc | |
chmod +x mc | |
flutter build apk | |
./mc config host add enbuild $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY | |
./mc cp build/app/outputs/apk/release/app-release.apk enbuild/enbuild/app-release-$BUILD_ID.apk |
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
version: '3' | |
services: | |
parse-server: | |
#build: . | |
image: yongjhih/parse-server | |
ports: | |
- "1337:1337" | |
environment: | |
PORT: 1337 | |
DATABASE_URI: $DATABASE_URI |
OlderNewer