Frontend project for Open360. Open360 is a system to create, manage and run surveys in a convenient way for both employees and employers. Please see the github.io page for more information.
The easiest way to run the application is running it in docker.
Make sure you have Docker installed.
To build docker image run the following command from root of the project folder:
docker build -f .docker/Dockerfile -t <image_name> .
Don't forget about the dot at the end of the command.
To serve the project locally run
docker run --name <container_name> -v </path/to/config.json>:/var/www/assets/config.json -d -p <port>:80 <image_name>
Make sure </path/to/config.json>
is absolute path. To read more about configuration file go to configuration guide.
The application will be served at http://localhost:<port>
.
- Make sure that you have Node 12 or later installed. See instructions here.
- Run
npm install
from the root of your clone of this project to install dependencies. - Set up configuration in
/tools/env/env.config.ts
file. See more at configuration guide.
Run ng serve
for a dev server. Navigate to http://localhost:5555/
. The app will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run npm run test
to run tests.
When debugging a specific test, change describe()
or it()
to fdescribe()
and fit()
to focus execution to just that one test. This will keep the output clean and speed up execution by not running irrelevant tests.
To load the project in Intellij products, simply Open
the repository folder.
Do not Import Project
, because that will overwrite the existing
configuration.