Skip to content

Commit 3575a5e

Browse files
authored
feat: UI redesign (#18)
1 parent bb6bd9b commit 3575a5e

13 files changed

Lines changed: 582 additions & 254 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
CONTRIBUTE.md
12
.env
23
build/*
34
dist/*
45
node_modules/*
5-
database/*
6+
database
67
*.db
78
*.db-journal
89
*/.DS_Store

README.md

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,47 @@
1+
<p align="center">
2+
<img src="static/images/logo-dark.svg" alt="CodamHero Logo" width="500"/>
3+
</p>
4+
15
# CodamHero v2
26
CodamHero v2 gives staff and students an overview of everything Codam.
37

48
## Limited access
59
Only staff members or C.A.T.s have access to (parts of) piscine overviews by design.
610

7-
## Development
8-
To get started, run the folllowing:
11+
## Prerequisites
12+
- Node.js (`brew install node` if you are on Mac, otherwise you gotta figure it out)
13+
- A 42 API key (get one from your intra: Settings > Applications > Register a new app)
14+
- URI key must be localhost:4000 or 5000 according to your build
15+
- Make sure the scope is accurate
16+
17+
## Setup
18+
**Install dependencies:**
919
```bash
10-
docker compose up -d # for the PostgresQL database
20+
docker compose up -d # for the PostgreSQL database
1121
npm install
12-
npm run build
22+
```
23+
24+
**Setup your keys:**
25+
```bash
1326
cp .env.example .env
1427
nano .env
28+
```
29+
- Add your INTRA_UID and INTRA_SECRET
30+
- Add a SESSION_SECRET and DIRECT_AUTH_SECRET
31+
32+
33+
## Development
34+
**Run the following:**
35+
```bash
36+
npm run build
1537
npx prisma migrate deploy
1638
npm run start
1739
```
1840

19-
To migrate the database, run:
41+
**To migrate the database, run:**
2042
```bash
2143
npx prisma migrate dev --name "<migration-name>"
2244
```
45+
46+
### Notes
47+
**Don't push your API key.**

0 commit comments

Comments
 (0)