Skip to content

Commit 00f4657

Browse files
committed
Add databse setup in readme
1 parent 35988bb commit 00f4657

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

Diff for: README.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,24 @@ How to use
1919
3. Run `npm start`
2020
4. Open your browser at `http://localhost:3000`
2121

22+
Setting up the PostgreSQL database
23+
----------------------------------
24+
25+
1. Create your database
26+
2. Create a .env file in the root of the project
27+
3. Add the following lines to the .env file:
28+
DB_USER=YourDatabaseUser
29+
DB_PASS=YourDatabasePassword
30+
DB_NAME=YourDatabaseName
31+
DB_HOST=YourDatabaseHost
32+
4. Start the application and check if you see the following message in the console:
33+
Connected to the PostgreSQL database
34+
5. If you see the message, you are good to go! ENJYOY
35+
2236
TODO
2337
----
2438

25-
- [ ] Add a database
39+
- [X] Add a database
2640
- [ ] Add a login system
2741

2842
License

0 commit comments

Comments
 (0)