You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SETUP.md
+76-8Lines changed: 76 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,17 @@
1
1
# 🚀 Exam-Bud Setup Guide
2
-
### *Your Ultimate Survival Guide to Getting This Beast Running*
2
+
3
+
### _Your Ultimate Survival Guide to Getting This Beast Running_
3
4
4
5
You're about to set up **Exam-Bud** - the open-source project that's going to revolutionize how we survive exams in enineering college. This isn't just another website; it's your digital lifeline when you're drowning in syllabus three days before finals (we've all been there, don't lie).
5
6
6
7
---
7
8
8
9
## ⚡ TL;DR - For the Impatient Souls
9
10
10
-
*Thought there would be a lot of steps, hehe?*
11
+
_Thought there would be a lot of steps, hehe?_
11
12
12
13
Just run this and pray to the tech gods:
14
+
13
15
```bash
14
16
docker compose up --build -d
15
17
```
@@ -25,11 +27,13 @@ Before we dive into the chaos, let's make sure you have the essentials. Think of
25
27
### ✅ Essential Tools
26
28
27
29
1.**Docker** 🐳
30
+
28
31
- Download from [Docker's official website](https://www.docker.com/get-started)
29
32
- Make sure the Docker daemon is running (you'll see a cute whale icon in your system tray)
30
33
- If Docker gives you installation errors, take a deep breath. We've all been there. Check the troubleshooting section below.
31
34
32
35
2.**Node.js** 🟢
36
+
33
37
- Get it from [nodejs.org](https://nodejs.org/)
34
38
- We're not picky about versions, but don't use something from 2015 please
35
39
@@ -38,6 +42,7 @@ Before we dive into the chaos, let's make sure you have the essentials. Think of
38
42
- Yes, it's that simple
39
43
40
44
### 🧠 Mental Preparation
45
+
41
46
- Accept that something will probably go wrong
42
47
- Have your favorite debugging playlist ready
43
48
- Keep some coffee/chai nearby
@@ -48,31 +53,88 @@ Before we dive into the chaos, let's make sure you have the essentials. Think of
48
53
## 🎬 The Main Event: Setup Steps
49
54
50
55
### Step 1: Enter the Project Directory
56
+
51
57
```bash
52
58
cd<project-name>
53
59
```
54
-
*Replace `<project-name>` with `Exam-bud`.*
60
+
61
+
_Replace `<project-name>` with `Exam-bud`._
55
62
56
63
### Step 2: Backend Magic ✨
57
64
58
65
Navigate to the backend and install dependencies:
66
+
59
67
```bash
60
68
cd backend
61
69
npm install
62
70
```
63
71
64
72
**Pro Tip:** While npm install is running, this is the perfect time to:
-**Why?** Because this file contains all the secret sauce (database configs, API keys, etc.)
78
+
79
+
- Just rename the file from `.env.sample` to `.env`
80
+
- Or if you are a terminal guy and do not wish to dabble in the methods of mere mortals,here are your commands:
81
+
82
+
1.**Windows(Powershell)**:
83
+
84
+
```powershell
85
+
Rename-Item .env.sample .env
86
+
```
87
+
88
+
2.**Mac/Linux(bash/zsh)**:
89
+
90
+
```bash
91
+
mv .env.sample .env
92
+
```
93
+
94
+
-**Why?** Because this file contains all the secret sauce (database configs, API keys, etc.). Samples of .env are meant to act as a guide to how you setup your environment variables and keys, since actually sharing details of such things might compromise sensitive informtion, it is rather a common practice to share a .env.sample for the aforementioned reasons.
95
+
96
+
#### Cloudinary credentials setup:
97
+
98
+
You might see the following in your newly renamed .env file
- The link opens a new page with your API keys and secret, now copy the `API Key` and paste it in <your_api_key>, then copy the `API Secret` and paste in place of <your_api_secret>.
- Or just use a different port by modifying the docker-compose file
@@ -156,8 +224,8 @@ Now go forth, set up this project, and may your builds be fast and your bugs be
156
224
157
225
**Pro Life Tip:** Bookmark this guide. You'll probably need it again when you inevitably forget how you set this up the first time. We've all been there, and we're all lying if we say we haven't.
158
226
159
-
*Happy coding, and may your notes always be complete!* 📚✨
227
+
_Happy coding, and may your notes always be complete!_ 📚✨
160
228
161
229
---
162
230
163
-
*Made with ❤️, ☕, and a healthy dose of procrastination by the Exam-Bud team*
231
+
_Made with ❤️, ☕, and a healthy dose of procrastination by the Exam-Bud team_
0 commit comments