From 25d65b2db459bcd8af0ee086f16eab92ea529efc Mon Sep 17 00:00:00 2001 From: originalmk <30776840+originalmk@users.noreply.github.com> Date: Wed, 15 Mar 2023 16:57:37 +0100 Subject: [PATCH] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 366d01e..a7f70fe 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,11 @@ **Be aware that this app is not stable yet and new commits may introduce breaking changes** To start this application you need to: + 1. Configure database - Install PostgreSQL DBMS - Setup some database and user with permissions to it - - Create .env file in the main directory and fill it in with fields DB_USER, DB_PASS, DB_HOST, DB_PORT and DB_NAME. In case of confusion you may check exemplary .env file saved as .env.example in the root directory of this repository. + - Create .env file in the main directory and fill it in with fields DB_USER, DB_PASS, DB_HOST, DB_PORT, DB_NAME and COOKIE_SECRET. In case of confusion you may check exemplary .env file saved as .env.example in the root directory of this repository. 2. Run both SQL scripts, which are located in the main directory. For app to be usable it is also recommended to insert some data to the database. - Note: Images should be added in media/images directory and image paths inserted into database should only contain part starting with images/ for example image may be uploaded at media/images/wozLEFT.webp and path in database should be images/wozLEFT.webp. 3. Run `npm install` in the main directory. @@ -17,4 +18,5 @@ To start this application you need to: - You need to do this after every update of app's frontend (you can do it every time you pull new version of this app). 6. Run `npm start` in the main directory 7. App will run on localhost:5000 + Note: pm2 or/and nginx may be used to run this app for production