Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#FOR REGULAR REQUESTS - create a new supabase database at (https://supabase.com/)
DATABASE_URL="postgres://postgres:{your_supabase-adress}@db.{your_supabase_variables}.supabase.co:6543/postgres?pgbouncer=true "
#FOR MIGRATIONS
DIRECT_URL="postgres://postgres:{your_supabase-adress}@db.{your_supabase_variables}.supabase.co:5432/postgres"

#DISCORD AUTHENTICATION - create a new discord application at (https://discord.com/developers/applications)
DISCORD_CLIENT_ID=566776545556
DISCORD_CLIENT_SECRET=MTNVFON_Tgjo64jr7_f53Re7hir

#NEXT_AUTH
NEXTAUTH_SECRET=IHOBHRFVIQNCvjdjvojven
NEXTAUTH_URL=http://localhost:3000/
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel
Expand Down
67 changes: 46 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,59 @@
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).
# CHRORACLE
![GitHub language top](https://img.shields.io/github/languages/top/ChronoDAO/CHROracle)

## Getting Started
[CHROracle](app.chronodao.com) is a webapp to track and follow the market of the web 3 game Big Time. It follows close to real time the evolution of sales, floor price and other aspects of the market place.

First, run the development server:
## Table of Contents

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```
[Authors](#authors)
[Next-Auth](#next-auth)
[Run locally](#run-locally)
[Licence](#licence)

### Authors

[@LionelDiot](https://github.com/LionelDiot)
[@AndreaSolis](https://github.com/Andreasolisgarcia)
[@Cyber-Geooorge](https://github.com/Cyber-Geooorge)
[@LisaDaudibon](https://github.com/LisaDaudibon)
[@1996thomas](https://github.com/1996thomas)

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
### Next-Auth
This project handles authentication for the users using next-auth and jwt.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
To add a field into the table User, you have to modify the following files :
- `auth.d.ts` at the root level,
- `lib/prisma/auth.ts`,
and the route/component where you want to show the new information.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
To only add an info to the table user, change the `ìnterface user` and then the profile info in the `lib/prisma/auth.ts` file, to get a new info in the session, change both the `jwt` and the `session interface` in the `auth.d.ts` and the info you get in the `auth.ts` file.

## Learn More
### Run locally

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

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
```bash
git clone https://link-to-project
```

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
Go to the project directory

## Deploy on Vercel
```bash
cd my-project
```

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.
Install dependencies

```bash
npm install
```
Transform the ``.env.local` into `.env` and add your own discord API key and supabase key.

Start the server

```bash
npm run start
```

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
### License
This project is protected under the GNU License.