-
Notifications
You must be signed in to change notification settings - Fork 0
/
project_setup.txt
44 lines (35 loc) · 1.34 KB
/
project_setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Setup Documentation
## Clone The Project
git clone https://github.com/Ujjalzaman/Doctor-Appointment.git
### Install Frontend
cd Doctor-Appointment
- npm install
- npm start
### Install Backend
cd api
- npm install
### Setup Database
1. Rename .env.example to .env (remove .example).
2. Create a PostgreSQL Database (Railway if you don't have one installed locally):
- Create an account at https://railway.app/.
- Navigate to the New Section > Database > Add PostgreSQL.
- Select your created database and go to the Variables tab.
- Copy DATABASE_PUBLIC_URL.
- Paste the database URL into the .env file.
### Install Prisma
- npm install -g prisma
- npx prisma generate
- npx prisma migrate dev
### Setup Google App Password (For Email Notification)
1. Go to Google Account settings at https://myaccount.google.com/security?hl=en.
2. Navigate to Security > 2-Step Verification.
3. Scroll to the bottom of the page and find App passwords.
4. Select your project name and copy the generated password.
5. Paste the app password into .env as EMAIL_PASS.
### Setup Cloudinary to Upload Image
1. Create a Cloudinary Account at https://cloudinary.com/.
2. Login to your Cloudinary Account and copy all the credentials (e.g., Cloud name, API key, API secret).
3. Paste those credentials into the .env file.
### Start Backend
npm start
Happy coding! 🚀