From ed579ffeb33e3324c9e59dc7a6f15f22391b5915 Mon Sep 17 00:00:00 2001 From: leca Date: Fri, 21 Jun 2024 16:27:01 +0300 Subject: [PATCH] Update Docs --- Docs.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Docs.md b/Docs.md index 369198f..8ccc62a 100644 --- a/Docs.md +++ b/Docs.md @@ -118,3 +118,23 @@ Otherwise, compares passwords If passwords match, creating session and redirects to __/__ Requires client to be not logged in. + + +## Deployment +### Traditional +To deploy an application in traditional way, follow these steps: + +1. edit ``config.json`` to your needs. + +2. Install dependencies: ``npm i`` + +3. Run __src/index.js__. Use ``npm run prod`` if you want to run it as a production and ``npm run dev`` if you want to run it with nodemon. + +### Docker +To deploy an application with Docker, you need to: + +1. edit ``config.json`` to your needs ( do not forget that backend must be able to connect to db container.) + +2. edit ``docker-compose.yml`` as with the data you've wrote to ``config.json`` + +3. Build and launch: ``docker-compose up --build`` \ No newline at end of file