Skip to content

Commit

Permalink
feat: initial commit before open source it
Browse files Browse the repository at this point in the history
  • Loading branch information
omariosouto committed Sep 12, 2022
0 parents commit 121a821
Show file tree
Hide file tree
Showing 293 changed files with 21,874 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = true
32 changes: 32 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
ignorePatterns: ["_api/gql_types.ts", "src/gql_types.ts"],
env: {
"jest/globals": true,
node: true,
},
globals: {
document: true,
globalThis: true,
window: true,
JSX: true,
},
parser: "@typescript-eslint/parser",
plugins: [],
extends: [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@next/next/recommended",
"plugin:prettier/recommended",
],
rules: {
"no-console": "error",
"@next/next/no-html-link-for-pages": "off",
},
settings: {
react: {
version: "detect",
},
},
};
17 changes: 17 additions & 0 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CD - Continuous Delivery

on:
push:
branches: [ main ]

env:
DEPLOY_MAIN_WEBHOOK: ${{ secrets.DEPLOY_MAIN_WEBHOOK }}

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Deploy"
run: |
curl $DEPLOY_MAIN_WEBHOOK
27 changes: 27 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI - Continuous Integration

on:
pull_request:
types: [opened, synchronize]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: "Start: Lint"
run: |
yarn install && yarn lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: "Start: Unit Testing"
run: |
yarn install && yarn test
133 changes: 133 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# Project
graphql.schema.json
4 changes: 4 additions & 0 deletions .yaml-lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"schema": "CORE_SCHEMA",
"ignore": "node_modules/*.yaml"
}
29 changes: 29 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Contributing/Contribuindo

## PT-BR 🇧🇷
1. Crie um fork!
2. Crie sua feature branch: `git checkout -b my-new-feature` |
3. Adicione os arquivos modificados: `git add .`
4. Faça um Commit com suas alterações: `git commit -m "Add some feature"`
5. Faça um push da sua branch: `git push origin my-new-feature`
6. Envie um Pull Request para esse repositório

- Adicione um título e uma descrição que deixe claro sua sugestão :)

**Depois que seu pull request for mergeado**

> Depois que seu pull request for mergeado, você pode apagar sua branch.
## en-US 🇺🇸
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Add files changed: `git add .`
4. Commit your changes: `git commit -m "Add some feature"`
5. Push to the branch: `git push origin my-new-feature`
6. Submit a pull request

- Add a title os a description that let clear your suggestion :).

**After your pull request is merged**

> After your pull request is merged, you can safely delete your branch.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# TechGuide.sh

O TechGuide.sh é uma iniciativa da Alura para mapear as necessidades mais comuns em cada profissional de tecnologia, direcionando tanto alunos e alunas quanto a própria escola com novos cursos, conteúdos, podcasts e artigos.

A gente se inspirou no também opensource http://roadmap.sh, porém usando a abordagem do profissional em T, abrindo mais possibilidades de caminhos e ordenação. Também queremos ter mais descritivos explicando o porquê de aprender cada um daqueles itens (cards) e fechar mais o escopo de cada um.

<p align="center">
<img src="https://user-images.githubusercontent.com/13791385/188493189-25068bf3-e14a-484f-a155-057f89fe8d9a.png" />
</p>

# FAQ/Perguntas Frequentes

## O que é o profissional em T?
> **R:** é um profissional que, além da sua especialidade, também tem um certo conhecimento em outras áreas que podem facilitar seu próprio trabalho ou o trabalho em equipe. No site do Dev em T da Alura há bastante a respeito, além de artigos e podcasts: https://alura.com.br/dev-em-t

## Posso gerar meu próprio guia usando esse repositório?
> **R:** Sim! Só pedimos que você faça um link para https://techguide.sh 😁 e respeite a licença de uso.

## Posso sugerir novas carreiras?
> **R:** Sim! Use o mecanismo de contribuição do Github. Nesse momento estamos focados em corrigir erros e melhorar as carreiras existentes.
# About the Project/Sobre o Projeto

## Contributing/Contribuir

### O que devo ter em mente antes de abrir um PullRequest?
- ???
- 🇧🇷: Quer contribuir com o projeto? [Confira o passo a passo](./CONTRIBUTING.md)

### Próximos Passos?

- [ ] Exportar o T para você poder trilhar seu caminho e contar suas histórias
- [ ] Suporte completo em Inglês

## History/Histórico
- 🇧🇷: Da uma olhada na aba [Releases](./releases) pra acompanhar as alterações feitas no projeto.

## License/Licença do Projeto

- TODO (Estamos decidindo)
71 changes: 71 additions & 0 deletions _api/api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import { ApolloServerPluginLandingPageGraphQLPlayground } from "apollo-server-core";
import { ApolloServer, gql } from "apollo-server-micro";
import { InMemoryLRUCache } from "@apollo/utils.keyvaluecache";
import { UUIDDefinition } from "graphql-scalars";
export { gql } from "apollo-server-micro";
// [Modules]
import modulesGuides from "_api/modules/guides";
import modulesBlocks from "_api/modules/blocks";

const customScalars = [UUIDDefinition];

const defaultTypeDefs = gql`
# Commons
enum SiteLocale {
PT_BR
EN_US
}
input FieldFilter {
gte: String
lt: String
eq: String
}
# ====================================================
input CreateSampleTextInput {
text: String!
}
# ====================================================
type Mutation {
createSampleText(input: CreateSampleTextInput): String!
}
type Query {
greet: String
}
`;

const serverSchema = {
typeDefs: [
...customScalars,
defaultTypeDefs,
modulesGuides.typeDefs,
modulesBlocks.typeDefs,
],
resolvers: {
...modulesGuides.resolvers,
...modulesBlocks.resolvers,
Query: {
greet: () => "Welcome to @alura/tshapeddev",
...modulesGuides.resolvers.Query,
...modulesBlocks.resolvers.Query,
},
Mutation: {
createSampleText: (_: unknown, args) => args.input.text,
...modulesGuides.resolvers.Mutation,
...modulesBlocks.resolvers.Mutation,
},
},
plugins: [
process.env.NODE_ENV === "production" &&
ApolloServerPluginLandingPageGraphQLPlayground(),
].filter(Boolean),
introspection: true,
cache: new InMemoryLRUCache({
// ~100MiB
maxSize: Math.pow(2, 20) * 100,
// 5 minutes (in milliseconds)
ttl: 300_000,
}),
};

export const apolloServer = new ApolloServer(serverSchema);
Loading

0 comments on commit 121a821

Please sign in to comment.