Setting up the frontend environment:
- cd into the lang2views-frontend directory.
- Type "npm i" into the terminal. This installs the dependencies.
Running the frontend website:
- Type "npm run dev". This runs the web app.
Setting up the backend environment:
- cd into the lang2views-backend directory.
- Type "npm i" into the terminal. This installs the dependencies.
Running the server:
- cd into the lang2views-backend directory.
- Type "npm run build" to build the app.
- Type "npm run start" to run the server.
OR
- Type "npm run detached" to run the server in detached mode.
Running tests:
- cd into the lang2views-backend directory.
- Type "npm run test" to run all jest tests inside the test folder
Stopping the server when run in detached mode:
- cd into the lang2views-backend directory.
- Type "pkill -f src/app.js" to kill all processing running the server
To run both the backend and the frontend, make sure you run the backend in detached mode so you can run the frontend afterwards.