Skip to content

Commit

Permalink
feat: created NextJS app for frontend with sass
Browse files Browse the repository at this point in the history
  • Loading branch information
samderanova committed Aug 11, 2023
1 parent 828f768 commit 63d8b06
Show file tree
Hide file tree
Showing 21 changed files with 674 additions and 136 deletions.
3 changes: 3 additions & 0 deletions apps/site/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["custom"]
}
9 changes: 5 additions & 4 deletions apps/web/.gitignore → apps/site/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ yarn-debug.log*
yarn-error.log*

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

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
12 changes: 9 additions & 3 deletions apps/web/README.md → apps/site/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
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).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```

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

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

To create [API routes](https://nextjs.org/docs/app/building-your-application/routing/router-handlers) add an `api/` directory to the `app/` directory with a `route.ts` file. For individual endpoints, create a subfolder in the `api` directory, like `api/hello/route.ts` would map to [http://localhost:3000/api/hello](http://localhost:3000/api/hello).
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

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

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn/foundations/about-nextjs) - an interactive Next.js tutorial.
- [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!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_source=github.com&utm_medium=referral&utm_campaign=turborepo-readme) from the creators of Next.js.
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
4 changes: 4 additions & 0 deletions apps/site/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}

module.exports = nextConfig
26 changes: 26 additions & 0 deletions apps/site/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "site",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@types/node": "20.4.9",
"@types/react": "18.2.20",
"@types/react-dom": "^18.2.0",
"eslint": "8.46.0",
"eslint-config-next": "^13.4.1",
"next": "^13.4.1",
"react": "18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.65.1",
"typescript": "5.1.6"
},
"devDependencies": {
"eslint-config-custom": "workspace:*"
}
}
1 change: 1 addition & 0 deletions apps/site/public/next.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/site/public/vercel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/site/src/app/favicon.ico
Binary file not shown.
Empty file added apps/site/src/app/globals.scss
Empty file.
22 changes: 22 additions & 0 deletions apps/site/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import "./globals.css";
import type { Metadata } from "next";
import { Inter } from "next/font/google";

const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
);
}
Empty file.
7 changes: 7 additions & 0 deletions apps/site/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Home() {
return (
<main>
<h1>ZotHacks 2023</h1>
</main>
);
}
41 changes: 41 additions & 0 deletions apps/site/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": [
"./src/*"
]
}
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
4 changes: 0 additions & 4 deletions apps/web/.eslintrc.js

This file was deleted.

11 changes: 0 additions & 11 deletions apps/web/app/layout.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions apps/web/app/page.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions apps/web/next-env.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions apps/web/next.config.js

This file was deleted.

25 changes: 0 additions & 25 deletions apps/web/package.json

This file was deleted.

8 changes: 0 additions & 8 deletions apps/web/tsconfig.json

This file was deleted.

Loading

0 comments on commit 63d8b06

Please sign in to comment.