Frontend for EOC Datahub system used in Odysseus LARP. Basically the one and only place for news, comms, personnel and fleet data, voting, captain's log, and starmap. Oh, and hackers can hack it.
- Node v18.14.0
- Angular 4
NOTE! Does not work in Windows environment as such. With Windows use Local setup in VSCode dev containers.
- Clone the repository
- Install dependencies with
npm install
- Have Odysseus Backend running locally
- If you are running the backend on non-default port (8888), update the proper API URL to
apiUrl
variable in./src/environments/environment.ts
and toapigen
script inpackage.json
- Run
npm start
to start the dev server
DataHub should now be available at http://localhost:4200
You can also run the backend using VSCode dev containers. Create/update your .env file like in the local setup instructions.
- Docker
- VSCode with Dev Containers extension
- Odysseus Backend
NOTE!
Make sure you are runningOdysseus Backend
!- Open new window in VSCode
- File --> Open Folder... -->
odysseus-data-hub
- VSCode will ask do you want to
Reopen in Container
--> Click it- If you are too slow --> Click the button in left bottom corner (looks like two L:s or disjointed ><) and choose
Reopen in Container
from the menu.
- If you are too slow --> Click the button in left bottom corner (looks like two L:s or disjointed ><) and choose
- VSCode will then start up container/service, install npm packages and start the service
- Try to rebuild the container: Click the button in left bottom corner (looks like two L:s or disjointed >< with the container name) and choose
Rebuild Container
from the menu. - You might run into this issue on ARM processors, see the issue for potential workarounds.