JS application - intive/patronage21-qa GitHub Wiki
JS application - how to run it
Install:
- Install Docker (see requirements for Mac and Windows)
- Install Node.js
JS Backend:
SETUP:
- Create a folder for the JS-environment
- In the folder click right button of the mouse and choose Git Bash Here
- In console write:
git clone
https://github.com/intive/patronage21-js-backend.git (this command will clone JS Backend repository into the environment folder) - In console write:
cd patronage21-js-backend
- In console write:
npm install
Workflow:
Update files from GitHub before running it (git pull; npm install)
Run with Docker:
- create .env file in root directory. In console write:
cp .env.example .env
- update .env file:
PORT=
ADDRESS=mongo
- in console write:
docker-compose up --build
- open in browser http://localhost:8080/api-docs/
Run with NPM:
Update files from GitHub before running it (git pull; npm install)
- update .env file in root directory:
PORT=
ADDRESS=
- to start the application in console write:
npm run dev
- open in browser http://localhost:8080/api-docs/
JS Frontend:
SETUP:
- In the environment folder click right button of the mouse and choose Git Bash Here
- In console write:
git clone
https://github.com/intive/patronage21-js-frontend.git (this command will clone JS Frontend repository into the environment folder) - In the console write:
cd patronage21-js-frontend
- In the console write:
npm install
Workflow:
- remember always to update files from GitHub before running it (git pull; npm install)
- in console write:
npm run dev
(this will open next.js app) - open the browser using http://localhost:3000
- if testing needs connection with backend make sure its running