JS application - intive/patronage21-qa GitHub Wiki

JS application - how to run it

Install:

  1. Install Docker (see requirements for Mac and Windows)
  2. Install Node.js

JS Backend:

SETUP:

  1. Create a folder for the JS-environment
  2. In the folder click right button of the mouse and choose Git Bash Here
  3. In console write: git clone https://github.com/intive/patronage21-js-backend.git (this command will clone JS Backend repository into the environment folder)
  4. In console write: cd patronage21-js-backend
  5. 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

Run with NPM:

Update files from GitHub before running it (git pull; npm install)

  • update .env file in root directory:
PORT=
ADDRESS=

JS Frontend:

SETUP:

  1. In the environment folder click right button of the mouse and choose Git Bash Here
  2. In console write: git clone https://github.com/intive/patronage21-js-frontend.git (this command will clone JS Frontend repository into the environment folder)
  3. In the console write: cd patronage21-js-frontend
  4. 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