Skip to content

Commit a8adf5c

Browse files
author
kiaralee
committed
Additional postgres info and cleanup of docs
1 parent e0aafc8 commit a8adf5c

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

GETTING_STARTED.md renamed to docs/GETTING_STARTED.md

+18
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,24 @@ ssl: { rejectUnauthorized: false }
115115
116116
Running `npm start` for the first time will create a new table with a username column and a password column.
117117

118+
If you're having trouble getting the local project to run, try the following in the `.env` file instead:
119+
120+
```
121+
DATABASE_URL=postgresql://username:pswrd@localhost
122+
```
123+
124+
> _Fun fact:_ You can replace `pswrd` with any arbitrary word you like!
125+
126+
Replace `username` with your device's username. If you're not sure, check this by opening up Postgres. Mine is `kiarahosie`:
127+
128+
![Postgres server list](pgex.png)
129+
130+
If you don't see this already, you'll need to create a new server by clicking the + on the bottom left corner:
131+
132+
![Postgres server creation](pgcr.png)
133+
134+
> Ensure the port is 5432
135+
118136
<h2 id="4">🌎 Deployment to Fly</h2>
119137

120138
The Techccelerator web app project is set up with a Dockerfile to make it easy to deploy with Fly. It only needs a little bit of setup.
File renamed without changes.

docs/pgcr.png

230 KB
Loading

docs/pgex.png

238 KB
Loading

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ auth.post('/register', async (req, res) => {
9898
} else {
9999
res.send(`User "${req.body.username}" already exists.`)
100100
}
101-
});
101+
});

0 commit comments

Comments
 (0)