Skip to content

Commit

Permalink
Add initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
modkaffes committed Feb 9, 2023
0 parents commit 152c366
Show file tree
Hide file tree
Showing 21 changed files with 4,021 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# See http://EditorConfig.org for more information

# top-most EditorConfig file
root = true

# Every File
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_API_URL='http://localhost:4000'
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"]
}
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.next
node_modules
public
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Meeting Scheduler

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Local development

1. Duplicate `.env.example` to `.env`
2. Install dependencies with your favorite package manager
- `pnpm install`
3. Run local development server along with mock data
- `pnpm mock-api & pnpm dev`

Visit [http://localhost:3000](http://localhost:3000) to see the app.
10 changes: 10 additions & 0 deletions app/head.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default function Head() {
return (
<>
<title>Meeting Scheduler</title>
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta name="description" content="An app to schedule meetings" />
<link rel="icon" href="/favicon.ico" />
</>
);
}
20 changes: 20 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import "@/styles/globals.css";
import { Inter } from "@next/font/google";

const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" className={`${inter.variable} font-sans`}>
<body>
<main className="mx-auto max-w-4xl px-4 text-gray-900 sm:px-6 lg:px-8">
{children}
</main>
</body>
</html>
);
}
9 changes: 9 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default function Home() {
return (
<div className="mx-auto max-w-3xl pt-20 pb-32 sm:pt-48 sm:pb-40">
<h1 className="text-4xl font-bold tracking-tight sm:text-center sm:text-6xl">
Meeting Scheduler
</h1>
</div>
);
}
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import("next").NextConfig} */
const nextConfig = {
experimental: {
appDir: true,
},
reactStrictMode: true,
};

module.exports = nextConfig;
42 changes: 42 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "meeting-scheduler",
"version": "0.1.0",
"private": true,
"scripts": {
"mock-api": "json-server --watch db/db.json --port 4000",
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"format": "prettier --write '**/*{ts,tsx,md}'"
},
"dependencies": {
"@headlessui/react": "^1.7.7",
"@heroicons/react": "^2.0.13",
"@next/font": "^13.1.2",
"@tanstack/react-query": "^4.22.0",
"date-fns": "^2.29.3",
"next": "^13.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.4.0"
},
"devDependencies": {
"@tanstack/react-query-devtools": "^4.22.0",
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
"@types/node": "^18.11.18",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"autoprefixer": "^10.4.13",
"eslint": "^8.31.0",
"eslint-config-next": "^13.1.2",
"json-server": "^0.17.1",
"postcss": "^8.4.21",
"prettier": "^2.8.3",
"prettier-plugin-tailwindcss": "^0.2.1",
"tailwindcss": "^3.2.4",
"typescript": "^4.9.4"
}
}
Loading

0 comments on commit 152c366

Please sign in to comment.