Skip to content

Commit

Permalink
[apps] Switch to a monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
54nd10 committed Oct 19, 2023
1 parent 91cf6a0 commit 4cd60d9
Show file tree
Hide file tree
Showing 313 changed files with 25,955 additions and 12,422 deletions.
60 changes: 21 additions & 39 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
{
"extends": "next/core-web-vitals",
"ignorePatterns": [
"package-lock.json",
"node_modules",
"next.config.js"
"env": {
"browser": true,
"node": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": ["dist", "package-lock.json"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint",
"sort-imports-es6-autofix"
],
"rules": {
"react/jsx-first-prop-new-line": [2, "multiline"],
"space-before-function-paren": ["error", "never"],
"react/jsx-tag-spacing": [2, {"beforeSelfClosing": "never"}],
"react/jsx-max-props-per-line": [2],
"react-hooks/exhaustive-deps": "off",
"quotes": [
"error",
"single"
],
"jsx-quotes": [
"error",
"prefer-single"
],
"indent": [
"error",
2
Expand All @@ -38,30 +37,13 @@
],
"no-unused-vars": "error",
"comma-dangle": "error",
"object-curly-spacing": [
"error",
"never"
],
"sort-imports-es6-autofix/sort-imports-es6": [
2,
{
"ignoreCase": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": [
"none",
"all",
"multiple",
"single"
]
}
],
"object-curly-spacing": ["error", "never"],
"sort-imports-es6-autofix/sort-imports-es6": [2, {
"ignoreCase": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}],
"eol-last": ["error", "always"],
"max-len": [
"error",
{
"code": 120
}
]
"max-len": ["error", {"code": 120}]
}

}
116 changes: 116 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,119 @@
############################
# OS X
############################

.DS_Store
.AppleDouble
.LSOverride
Icon
.Spotlight-V100
.Trashes
._*


############################
# Linux
############################

*~


############################
# Windows
############################

Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msm
*.msp


############################
# Packages
############################

*.7z
*.csv
*.dat
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
*.com
*.class
*.dll
*.exe
*.o
*.seed
*.so
*.swo
*.swp
*.swn
*.swm
*.out
*.pid


############################
# Logs and databases
############################

.tmp
*.log
*.sql
*.sqlite
*.sqlite3


############################
# Misc.
############################

*#
ssl
.idea
nbproject
public/uploads/*
!public/uploads/.gitkeep

############################
# Node.js
############################

lib-cov
lcov.info
pids
logs
results
node_modules
.node_history

############################
# Tests
############################

testApp
coverage

############################
# Strapi
############################

.env
license.txt
exports
*.cache
dist
build
.strapi-updater.json

out
.next
node_modules
Expand Down
23 changes: 10 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
This is the source of the [56k.cloud)](https://56k.cloud/) website, a Next.js (static-only) website, built by GitHub Actions and hosted on GitHub pages.
This is the source of the [56k.cloud)](https://56k.cloud/) website, a Next.js website using Strapi as a CMS.

## Getting Started

Make sure you have Node v16 or better. Earlier versions were not tested.
Make sure you have Node v18 or better. Earlier versions were not tested.

Then, install the dependencies:

```bash
$ npm i
```

And run the development server:
Set up environment variables before running the following commands.

Run the website development server:

```bash
$ npm run dev
$ npm run dev:website
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

## Learn More

To learn more about Next.js, take a look at the following resources:
Run the cms development server:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
```bash
$ npm run dev:cms
```
6 changes: 6 additions & 0 deletions apps/cms/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
HOST=0.0.0.0
PORT=1337
APP_KEYS="toBeModified1,toBeModified2"
API_TOKEN_SALT=tobemodified
ADMIN_JWT_SECRET=tobemodified
JWT_SECRET=tobemodified
48 changes: 48 additions & 0 deletions apps/cms/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"env": {
"browser": true,
"node": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": ["dist", "types", "package-lock.json", "node_modules"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"sort-imports-es6-autofix"
],
"rules": {
"quotes": [
"error",
"single"
],
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"semi": [
"error",
"never"
],
"no-unused-vars": "error",
"comma-dangle": "error",
"object-curly-spacing": ["error", "never"],
"sort-imports-es6-autofix/sort-imports-es6": [2, {
"ignoreCase": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}],
"max-len": ["error", {"code": 120}]
}
}
Loading

0 comments on commit 4cd60d9

Please sign in to comment.