Skip to content

Commit

Permalink
Add backend
Browse files Browse the repository at this point in the history
  • Loading branch information
AymericBethencourt committed Jun 8, 2020
1 parent 63ae1ce commit 92438ba
Show file tree
Hide file tree
Showing 1,051 changed files with 60,651 additions and 13,152 deletions.
1 change: 0 additions & 1 deletion .env

This file was deleted.

4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
public
dist
coverage
101 changes: 101 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"root": true,
// "parser": "babel-eslint",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"project": [
"./frontend/tsconfig.json",
"./api/tsconfig.json",
"./videos-converter/tsconfig.json",
"./images-converter/tsconfig.json",
"./uptime-scanner/tsconfig.json"
],
"tsconfigRootDir": "src"
},
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
//"plugin:@typescript-eslint/recommended-requiring-type-checking"
"standard",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
"plugin:prettier/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:security/recommended"
],
"settings": {
"react": {
"version": "latest"
},
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
}
},
"plugins": ["@typescript-eslint/eslint-plugin", "import", "prettier", "standard", "react", "jsx-a11y", "security"],
"rules": {
//"no-unused-variable": "warn",
"import/no-unresolved": "error",
"import/named": "error",
"import/namespace": "error",
"import/default": "error",
"import/export": "error",
"import/no-absolute-path": "error",
"import/no-self-import": "error",
"import/no-cycle": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"import/no-mutable-exports": "error",
"import/no-unused-modules": "warn",
"import/first": "error",
"import/exports-last": "error",
"import/no-duplicates": "error",
"import/order": "error",
"import/newline-after-import": "error",
"import/no-named-default": "error",
"import/no-default-export": "error",
"import/no-anonymous-default-export": "error",
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "none",
"requireLast": false
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}
],
"no-console": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/prop-types": 0,
"prettier/prettier": 1
}
}
37 changes: 15 additions & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
**/.env
**/.env.development
**/.env.production
**/*.log
**/node_modules
**/dist
**/downloads
**/screenshots

# dependencies
/node_modules
/.pnp
.pnp.js
# Windows
**/Thumbs.db
**/ehthumbs.db
**/Desktop.ini
**/$RECYCLE.BIN/

# testing
/coverage
# OSX
**/.DS_Store

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

wrangler.toml
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
dist
public
workers-site
workers
coverage
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"singleQuote": true,
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"arrowParens": "always"
}
31 changes: 31 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"msjsdiag.debugger-for-chrome",
"esbenp.prettier-vscode",
"bungcip.better-toml",
"Shan.code-settings-sync",
"raymondcamden.csslint",
"mikestead.dotenv",
"donjayamanne.githistory",
"eamodio.gitlens",
"christian-kohler.npm-intellisense",
"christian-kohler.path-intellisense",
"Gruntfuggly.todo-tree",
"alfnielsen.vsc-organize-imports",
"anseki.vscode-color",
"pranaygp.vscode-css-peek",
"Prisma.vscode-graphql",
"emmanuelbeziat.vscode-great-icons",
"ecmel.vscode-html-css",
"wix.vscode-import-cost",
"eg2.vscode-npm-script",
"jaspernorth.vscode-pigments",
"GitHub.vscode-pull-request-github",
"mrmlnc.vscode-scss",
"jpoissonnier.vscode-styled-components",
"cssho.vscode-svgviewer",
"akamud.vscode-theme-onedark",
"VisualStudioExptTeam.vscodeintellicode"
]
}
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
10 changes: 10 additions & 0 deletions .vscode/my_command.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
exports.execute = async (args) => {
// args => https://egodigital.github.io/vscode-powertools/api/interfaces/_contracts_.workspacecommandscriptarguments.html

// s. https://code.visualstudio.com/api/references/vscode-api
const vscode = args.require('vscode');

vscode.window.showInformationMessage(
`Hello, from '${ args.command }'!`
);
};
60 changes: 60 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
({
// Hide files that are rarely edited for better folder arrangement
"files.exclude": {
"LICENSE": true,
"**/.DS_Store": true,
"**/.git": true,
"**/.webpack": true,
"**/build": true,
"**/dist": true,
"**/coverage": true,
"**/node_modules": true,
// "**.prettier*": true,
// "**.travis*": true,
// "**/lerna.json": true,
// "**/.eslint*": true,
// "**/.gitignore*": true,
// "**/package-lock.json": true,
"**/yarn.lock": true
// "**/source-map-install.js": true,
// "**/tsconfig.json": true,
// "**/webpack.config.js": true
},
"javascript.validate.enable": false,
"gitlens.codeLens.enabled": false,
"gitlens.codeLens.author.enabled": false,
"eslint.validate": [
"javascript",
"javascriptreact",
{ "language": "typescript", "autoFix": true },
{ "language": "typescriptreact", "autoFix": true }
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.formatOnSave": false
},
"[typescript]": {
"editor.formatOnSave": false
},
"[typescriptreact]": {
"editor.formatOnSave": true
}
},
{
"ego.power-tools": {
"commands": {
"myCommand": {
"script": "my_command.js",
"button": {
"text": "Click here to start the command."
}
}
}
}
})
32 changes: 32 additions & 0 deletions .vscode/tezosacademy-snippets.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"Styled Componant": {
"prefix": "sc",
"body": ["export const $1 = styled.div``"],
"description": "styled componant"
},
"Ellipsis": {
"prefix": "ellipsis",
"body": ["white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"],
"description": "ellipsis"
},
"Flex": {
"prefix": "flex",
"body": ["display: flex; align-items: center; justify-content: space-around;"],
"description": "flex"
},
"Media": {
"prefix": "media",
"body": ["@media (max-width: 700px) { width: 100vw; }"],
"description": "media"
},
"Grid": {
"prefix": "grid",
"body": ["display: grid; grid-template-columns: auto auto; grid-gap: 10px;"],
"description": "grid"
},
"svg": {
"prefix": "svg",
"body": "<svg><use xlinkHref='/icons/sprites.svg#$1' /></svg>",
"description": "svg"
}
}
15 changes: 1 addition & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
<p align="center">
<img src="./public/readme.png" alt="serverless mern" align="center" />
</p>

<table border="0" style="boder-color: #FFF">
<tr>
<td width="255px"><img src="./public/readme.gif" alt="serverless mern" align="center" style="width: 255px" /></td>
<td>
Tezos Academy is a fun interactive tutorial develloped by <a href="https://octo.com/" target="_blank">OCTO Technology</a> on how to code smart contracts for <a href="https://tezos.com/" target="_blank">Tezos</a>. You are about to create a spaceship battle smart contract!<br /><br />
By default, Tezos smart contracts are written in <a href="https://tezos.gitlab.io/whitedoc/michelson.html" target="_blank">Michelson</a>, but it is an hard to learn low level formal language. That is why we decide for this tutorial to use <a href="https://ligolang.org/" target="_blank">PascaLIGO</a> instead. The syntax is high level, close to Pascal and transpiles to Michelson.<br /><br />
In this tutorial, you are going to build a "Ship Factory" to build an army of spaceships, then we will add more and more functionalities as you progress through the tutorial, such as going into space battles!
</td>
</tr>
</table>
# tezosacademy
1 change: 0 additions & 1 deletion dist/worker.js

This file was deleted.

5 changes: 5 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"packages": ["src/*"],
"npmClient": "yarn",
"version": "independent"
}
Loading

0 comments on commit 92438ba

Please sign in to comment.