-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(nextjs): replace mono-repo with nextjs approach
- Loading branch information
Showing
95 changed files
with
13,628 additions
and
7,935 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"plugin:prettier/recommended" | ||
], | ||
"rules": { | ||
"prettier/prettier": "error" | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,42 @@ | ||
# Macos | ||
# 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 | ||
|
||
# Editors | ||
.vscode/ | ||
.idea/ | ||
.fleet/ | ||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Node | ||
node_modules/ | ||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
# Generated | ||
public/career | ||
.lighthouseci | ||
|
||
# Editors | ||
.idea/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"semi": false | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Next.js: debug server-side", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "npm run dev" | ||
}, | ||
{ | ||
"name": "Next.js: debug client-side", | ||
"type": "chrome", | ||
"request": "launch", | ||
"url": "http://localhost:3000" | ||
}, | ||
{ | ||
"name": "Next.js: debug full stack", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "npm run dev", | ||
"serverReadyAction": { | ||
"pattern": "- Local:.+(https?://.+)", | ||
"uriFormat": "%s", | ||
"action": "debugWithChrome" | ||
} | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
install: | ||
yarn install | ||
cd e2e && make install | ||
npm install | ||
|
||
dev_api: | ||
cd api && make dev | ||
dev: | ||
npm run dev | ||
|
||
dev_web: | ||
cd web && make dev | ||
.PHONY: build | ||
build: | ||
npm run build | ||
|
||
start_api: | ||
cd api && make start | ||
start: build | ||
npm run start | ||
|
||
start_web: | ||
cd web && make start | ||
lint: | ||
npm run lint | ||
|
||
start: | ||
yarn $@ | ||
lint_fix: | ||
npm run lint:fix | ||
|
||
dev: | ||
yarn $@ | ||
lighthouse: | ||
npx @lhci/cli autorun | ||
|
||
test: lint build lighthouse | ||
|
||
.PHONY: e2e | ||
e2e: | ||
cd e2e && make test | ||
deploy: install test build | ||
|
||
deploy: install e2e | ||
cd api && make $@ | ||
cd web && make $@ | ||
clean: | ||
rm -rf node_modules/ .next/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
# Image Analyzer App | ||
|
||
> a monorepo for a web app that analyzes images using MobileNet (in-browser) and ChatGPT (Cloudflare Workers) | ||
> a NextJS app that allows users to analyze images using MobileNet (in-browser), ChatGPT, Material-UI, and Cloudflare Workers | ||
## Requirements | ||
|
||
- [GNU Make](https://www.gnu.org/software/make) | ||
- [Nodejs](https://nodejs.org/en/) | ||
- [Yarn](https://yarnpkg.com/) | ||
|
||
## Usage | ||
|
||
To install project dependencies, run the following command: | ||
```bash | ||
make install | ||
``` | ||
``` | ||
|
||
To start the application, run the following command: | ||
```bash | ||
make start | ||
``` | ||
|
||
To run `e2e` tests, run the following command: | ||
To run all tests, run the following command: | ||
```bash | ||
make e2e | ||
make test | ||
``` | ||
|
||
To deploy the application, run the following command: | ||
```bash | ||
make deploy | ||
``` | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.