Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Latest commit

 

History

History
40 lines (32 loc) · 861 Bytes

README.md

File metadata and controls

40 lines (32 loc) · 861 Bytes

VIATRA-Generator-Frontend

How to run the project

Calling npm start in the project directory will run the project on port 8000.

If you wish to run the project on a separate port, add the following lines to package.json:

(Linux / Mac)

"scripts": {
    "start": "PORT=<PORT_NUMBER> react-scripts start",
     ...
 }

Windows

"scripts": {
    "start": "set PORT=<PORT_NUMBER>&& react-scripts start",
     ...
 }

Backend & MongoDB

This project uses MongoDB in order to store data for the service. In order to run the service, the machine needs to have mongoDB installed locally and running:

// macOS
> brew update
> brew install mongodb
> sudo mkdir -p /data/db
> sudo chown -R `id -un` /data/db
> mongod

This will run an instance of mongo on the machine and the backend will now be able to connect to the machine.