-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsteps.txt
More file actions
86 lines (59 loc) · 1.61 KB
/
steps.txt
File metadata and controls
86 lines (59 loc) · 1.61 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
CC SEE Lab steps
1 install nodejs and npm (install from website)
sudo apt install nodejs npm -y
2 install amplify cli
npm cache clean --force
npm install -g @aws-amplify/cli
3 create iam user
and create access keys
4 amplify initialise now
amplify init
enter the required details like access id and secret access key id and region
5 Add Cognito Authentication
amplify add auth
default config
email
done
6 deploy the authentication backend to AWS now.
amplify push
7 Integrate Cognito Auth in Your React App
npm install aws-amplify @aws-amplify/ui-react
8 run react project
npm run dev
9 create EC2
10 create RDS db
11 got to rds and connect ec2 to it
11 connect ec2
clone the git repoor
git clone https://github.com/gallant-giri/placify.git
sudo apt update
sudo apt install nodejs npm -y
sudo apt install mysql-client -y
npm install express
12 creating db schema
CREATE DATABASE IF NOT EXISTS placify;
USE placify;
CREATE TABLE experiences (
id INT AUTO_INCREMENT PRIMARY KEY,
user_id VARCHAR(255),
company VARCHAR(255),
role VARCHAR(255),
description TEXT,
file_key VARCHAR(512),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
13 creating .env in backend
DB_HOST=
DB_USER=placify
DB_PASSWORD=your password
DB_NAME=placify
PORT=4000
and also in front end create .env and set VITE_API_BASE_URL
14 run backend server
node index.js
15 to check working or not
http://EC2-public-ip/api/experiences
if still not working create elastic ip , associate it and give that
16 for file uploads
amplify add storage
amplify push