Skip to content

Commit 1292329

Browse files
committed
Update challenge to use latest challenge for frontend engineer
1 parent 09c12d2 commit 1292329

22 files changed

Lines changed: 1670 additions & 1376 deletions

.env.example

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.cjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:react-hooks/recommended',
8+
],
9+
ignorePatterns: ['dist', '.eslintrc.cjs'],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['react-refresh'],
12+
rules: {
13+
'react-refresh/only-export-components': [
14+
'warn',
15+
{ allowConstantExport: true },
16+
],
17+
},
18+
}

.gitignore

Lines changed: 21 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,24 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.js
7-
8-
# testing
9-
/coverage
10-
11-
# next.js
12-
/.next/
13-
/out/
14-
15-
# production
16-
/build
17-
18-
# misc
19-
.DS_Store
20-
*.pem
21-
22-
# debug
1+
# Logs
2+
logs
3+
*.log
234
npm-debug.log*
245
yarn-debug.log*
256
yarn-error.log*
26-
27-
# local env files
28-
.env.local
29-
.env.development.local
30-
.env.test.local
31-
.env.production.local
32-
33-
# vercel
34-
.vercel
35-
.env
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

README.md

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,20 @@
1-
# NextJS Sample App
2-
This is a simple sample app built with NextJS and Postgres.
1+
# Sample app
2+
This is a simple Vite + React application that you will use to complete the challenge.
33

4-
## Setup with Docker (recommended)
5-
```bash
6-
docker-compose up
7-
```
8-
9-
## Setup without Docker
10-
1. [Install Postgres](https://www.postgresql.org/download/macosx/)
11-
2. Install Node 16
12-
3. Install Yarn
13-
4. Install dependencies
14-
```bash
15-
yarn
16-
```
4+
## Setup
5+
- Install Node 18.9.0 (`nvm install 18.9.0`)
6+
- Install Yarn (`npm install -g yarn`)
7+
- Install dependencies (`yarn`)
178

189
## Running the app
1910
```bash
2011
yarn dev
2112
```
2213

14+
App will be running on `http://localhost:5173/`
15+
2316
## Resources
2417
- ✅ Searching the internet for answers (Stackoverflow, Google)
18+
- 🎨 [Figma Design](https://www.figma.com/file/3nBh6bJzPlAVvIfH7tidUT/Proposal---Front-End-Challenge---Mid?type=design&node-id=0-1&mode=design&t=zUi9VT65muOPHYJR-0). Please keep in mind that you need to login with a personal account to see the design specs.
2519
- ❌ Github Copilot (please turn this off in your IDE)
2620
- ❌ Any AI based code generation tool
27-
28-
## Assignment
29-
### Setup
30-
1. Run the sample application.
31-
2. You should see the `pages/index.tsx` page render with some example information.
32-
3. If you're unable to run the application, please reach out to us for help. Otherwise, you're all set for the test.
33-
34-
35-
### Requirements
36-
- Postgres
37-
- Node

db/db.ts

Lines changed: 0 additions & 46 deletions
This file was deleted.

docker-compose.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Keep Search Bar App</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

next-env.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

package.json

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,28 @@
11
{
2-
"name": "keep-setup-challenge",
3-
"version": "1.0.1",
2+
"name": "react-search-bar",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
46
"scripts": {
5-
"dev": "next",
6-
"build": "next build",
7-
"start": "next start",
8-
"post-update": "yarn upgrade --latest"
7+
"dev": "vite",
8+
"build": "tsc && vite build",
9+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
10+
"preview": "vite preview"
911
},
1012
"dependencies": {
11-
"dotenv": "^16.0.3",
12-
"next": "12.3.1",
13-
"node-fetch": "^2.6.11",
14-
"pg": "^8.10.0",
1513
"react": "^18.2.0",
16-
"react-dom": "^18.2.0",
17-
"ts-node": "^10.9.1"
14+
"react-dom": "^18.2.0"
1815
},
19-
"license": "MIT",
20-
"keywords": [],
21-
"description": "",
2216
"devDependencies": {
23-
"@swc-node/register": "^1.6.5",
24-
"@swc/cli": "^0.1.62",
25-
"@swc/core": "^1.3.57",
26-
"@types/node": "18.11.4",
27-
"@types/react": "18.0.22",
28-
"typescript": "4.8.4"
29-
},
30-
"engines": {
31-
"node": ">=16.0.0"
17+
"@types/react": "^18.2.55",
18+
"@types/react-dom": "^18.2.19",
19+
"@typescript-eslint/eslint-plugin": "^6.21.0",
20+
"@typescript-eslint/parser": "^6.21.0",
21+
"@vitejs/plugin-react": "^4.2.1",
22+
"eslint": "^8.56.0",
23+
"eslint-plugin-react-hooks": "^4.6.0",
24+
"eslint-plugin-react-refresh": "^0.4.5",
25+
"typescript": "^5.2.2",
26+
"vite": "^5.1.0"
3227
}
33-
}
28+
}

pages/_app.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)