Skip to content

Commit

Permalink
feat: website v2
Browse files Browse the repository at this point in the history
* initial commit

* revert: remove hbs files from gitignore

* chore: add instructions to run the app

* feat:home page

* feat: members page

* feat: event page and pr comments

* feat: center text in description text

* feat: fly.io deploy files
  • Loading branch information
ivanms1 authored Nov 29, 2022
1 parent 0555b9a commit 763d40b
Show file tree
Hide file tree
Showing 68 changed files with 7,680 additions and 319 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.git
23 changes: 23 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["next", "next/core-web-vitals", "prettier"],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"settings": {
"react": {
"version": "detect"
},
"import/ignore": ["node_modules"]
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": ["error"]
}
}
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
34 changes: 0 additions & 34 deletions .github/workflows/ci.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn pre-commit
37 changes: 37 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel

# ignore handlebars files
*.hbs
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false
}
17 changes: 17 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-prettier/recommended",
"stylelint-config-standard-scss"
],
"plugins": ["stylelint-order", "stylelint-prettier"],
"rules": {
"order/properties-alphabetical-order": true,
"prettier/prettier": true,
"selector-class-pattern": null,
"selector-pseudo-class-no-unknown": [
true,
{ "ignorePseudoClasses": ["global"] }
]
}
}
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"github.vscode-pull-request-github",
"eamodio.gitlens",
"christian-kohler.path-intellisense"
]
}
30 changes: 30 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"eslint.validate": ["typescript", "typescriptreact"],
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true
},
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"typescript.tsdk": "node_modules/typescript/lib"
}
43 changes: 43 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Install dependencies only when needed
FROM node:16-alpine AS builder
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY . .
RUN yarn install --frozen-lockfile

# If using npm with a `package-lock.json` comment out above and use below instead
# RUN npm ci

ENV NEXT_TELEMETRY_DISABLED 1

# Add `ARG` instructions below if you need `NEXT_PUBLIC_` variables
# then put the value on your fly.toml
# Example:
# ARG NEXT_PUBLIC_EXAMPLE="value here"

RUN yarn build

# If using npm comment out above and use below instead
# RUN npm run build

# Production image, copy all the files and run next
FROM node:16-alpine AS runner
WORKDIR /app

ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

COPY --chown=nextjs:nodejs --from=builder /app/ ./

USER nextjs

ENV PORT 3000

CMD ["yarn", "start"]

# If using npm comment out above and use below instead
# CMD ["npm", "run", "start"]
46 changes: 45 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,49 @@

To view our site and see your contributions, visit <https://free-code-camp-seoul.github.io/>

## Running the app

- Install dependencies

```bash
yarn
# or
yarn install
```

- Husky setup (only once)

```bash
yarn prepare
```

- Run dev mode

```bash
yarn dev
```

- Build the app

```bash
yarn build
```

- Generate component/page

```bash
yarn plop
```

- If you use VSCode, you can find the recommended extensions in `.vscode/extensions.json`

- [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
- [Stylelint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint)
- [GitHub Pull Requests and Issues](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github)
- [GitLens](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens)
- [Path Intellisense](https://marketplace.visualstudio.com/items?itemName=christian-kohler.path-intellisense)

## Contributing as a FCC Seoul Collaborator

Any contributions to this repo **must** follow our code formatting and linting rules. The easiest way is to use the [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) extension for your code editor. Most of the members use VS Code but you're welcome to use other editors. Pull requests that don't follow Prettier's linting rules will not be merged.
Expand All @@ -16,4 +59,5 @@ Any contributions to this repo **must** follow our code formatting and linting r
2. Fork this repo by clicking on the Fork link (top right corner).
3. Download (or git Clone) to your local computer.
4. Make changes and edits. Commit these changes, then push them to your remote repo.
5. Submit a Pull request to the Free-Code-Camp-Seoul repo.
5. Follow the conventional commit message format. See [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) for more details.
6. Submit a Pull request to the Free-Code-Camp-Seoul repo.
Binary file removed docs/andrei.jpg
Binary file not shown.
Loading

0 comments on commit 763d40b

Please sign in to comment.