Skip to content

Commit 5a313fe

Browse files
authored
Merge pull request #9 from oslabs-beta/wwwWanted
Www wanted
2 parents 0e3c761 + 6921f81 commit 5a313fe

35 files changed

+1604
-407
lines changed

www/.env.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Since .env is gitignored, you can use .env.example to build a new `.env` file when you clone the repo.
2+
# Keep this file up-to-date when you add new variables to `.env`.
3+
4+
# This file will be committed to version control, so make sure not to have any secrets in it.
5+
# If you are cloning this repo, create a copy of this file named `.env` and populate it with your secrets.
6+
7+
# When adding additional env variables, the schema in /env/schema.mjs should be updated accordingly
8+
9+
# Prisma
10+
DATABASE_URL=file:./db.sqlite

www/.eslintrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"project": "./tsconfig.json"
5+
},
6+
"plugins": ["@typescript-eslint"],
7+
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
8+
"rules": {
9+
"@typescript-eslint/consistent-type-imports": "warn"
10+
}
11+
}

www/.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
# database
12+
/prisma/db.sqlite
13+
/prisma/db.sqlite-journal
14+
15+
# next.js
16+
/.next/
17+
/out/
18+
next-env.d.ts
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# local env files
34+
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
35+
.env
36+
.env*.local
37+
38+
# vercel
39+
.vercel
40+
41+
# typescript
42+
*.tsbuildinfo

www/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Create T3 App
2+
3+
This is a [T3 Stack](https://create.t3.gg/) project bootstrapped with `create-t3-app`.
4+
5+
## What's next? How do I make an app with this?
6+
7+
We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary.
8+
9+
If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our [Discord](https://t3.gg/discord) and ask for help.
10+
11+
- [Next.js](https://nextjs.org)
12+
- [NextAuth.js](https://next-auth.js.org)
13+
- [Prisma](https://prisma.io)
14+
- [Tailwind CSS](https://tailwindcss.com)
15+
- [tRPC](https://trpc.io)
16+
17+
## Learn More
18+
19+
To learn more about the [T3 Stack](https://create.t3.gg/), take a look at the following resources:
20+
21+
- [Documentation](https://create.t3.gg/)
22+
- [Learn the T3 Stack](https://create.t3.gg/en/faq#what-learning-resources-are-currently-available) — Check out these awesome tutorials
23+
24+
You can check out the [create-t3-app GitHub repository](https://github.com/t3-oss/create-t3-app) — your feedback and contributions are welcome!
25+
26+
## How do I deploy this?
27+
28+
Follow our deployment guides for [Vercel](https://create.t3.gg/en/deployment/vercel) and [Docker](https://create.t3.gg/en/deployment/docker) for more information.

www/next.config.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// @ts-check
2+
/**
3+
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation.
4+
* This is especially useful for Docker builds.
5+
*/
6+
!process.env.SKIP_ENV_VALIDATION && (await import("./src/env/server.mjs"));
7+
8+
/** @type {import("next").NextConfig} */
9+
const config = {
10+
reactStrictMode: true,
11+
swcMinify: true,
12+
i18n: {
13+
locales: ["en"],
14+
defaultLocale: "en",
15+
},
16+
images: {
17+
remotePatterns: [
18+
{
19+
protocol: 'https',
20+
hostname: 'github.com',
21+
},
22+
],
23+
},
24+
};
25+
export default config;

www/package.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "www",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"build": "next build",
7+
"dev": "next dev",
8+
"postinstall": "prisma generate",
9+
"lint": "next lint",
10+
"start": "next start"
11+
},
12+
"dependencies": {
13+
"@headlessui/react": "^1.7.5",
14+
"@heroicons/react": "^2.0.13",
15+
"@prisma/client": "^4.5.0",
16+
"@tanstack/react-query": "^4.16.0",
17+
"@trpc/client": "^10.0.0",
18+
"@trpc/next": "^10.0.0",
19+
"@trpc/react-query": "^10.0.0",
20+
"@trpc/server": "^10.0.0",
21+
"next": "13.0.2",
22+
"react": "18.2.0",
23+
"react-dom": "18.2.0",
24+
"superjson": "1.9.1",
25+
"swiper": "^8.4.5",
26+
"tiny-slider": "^2.9.4",
27+
"tiny-slider-react": "^0.5.6",
28+
"zod": "^3.18.0"
29+
},
30+
"devDependencies": {
31+
"@types/node": "^18.0.0",
32+
"@types/react": "^18.0.14",
33+
"@types/react-dom": "^18.0.5",
34+
"@types/tiny-slider-react": "^0.3.4",
35+
"@typescript-eslint/eslint-plugin": "^5.33.0",
36+
"@typescript-eslint/parser": "^5.33.0",
37+
"autoprefixer": "^10.4.7",
38+
"eslint": "^8.26.0",
39+
"eslint-config-next": "13.0.2",
40+
"postcss": "^8.4.14",
41+
"prettier": "^2.7.1",
42+
"prettier-plugin-tailwindcss": "^0.1.13",
43+
"prisma": "^4.5.0",
44+
"tailwindcss": "^3.2.0",
45+
"typescript": "^4.8.4"
46+
},
47+
"ct3aMetadata": {
48+
"initVersion": "6.11.3"
49+
}
50+
}

www/postcss.config.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

www/prettier.config.cjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import("prettier").Config} */
2+
module.exports = {
3+
plugins: [require.resolve("prettier-plugin-tailwindcss")],
4+
};

www/prisma/schema.prisma

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// This is your Prisma schema file,
2+
// learn more about it in the docs: https://pris.ly/d/prisma-schema
3+
4+
generator client {
5+
provider = "prisma-client-js"
6+
}
7+
8+
datasource db {
9+
provider = "sqlite"
10+
url = env("DATABASE_URL")
11+
}
12+
13+
model Example {
14+
id String @id @default(cuid())
15+
createdAt DateTime @default(now())
16+
updatedAt DateTime @updatedAt
17+
}

www/public/favicon.ico

15 KB
Binary file not shown.

0 commit comments

Comments
 (0)