The user interface for Event Store. This is included as a submodule in the main Event Store repository.
Currently there are two ways to run the UI:
- Open
index.html
located in thesrc
folder in your browser. - Execute
gulp connect
. The command gulp-connect runs a webserver with LiveReload (see dev section for info how to set up gulp if you are new to it).gulp connect
needsgulp-cli
to run, please see Dev information on how to install it properly.
To start developing, make sure you have the following requirements:
1. Install Node.js v18.12.1
If you already have another version of Node.js installed, nvm
can be used to both install and set Node.js v18.12.1 as the active one:
nvm install 18.12.1
nvm use 18.12.1
nvm for Windows can be downloaded here.
nvm for Linux can be installed using the following instructions.
First, check your version of npm using npm --version
. Install npm v9.2.0 only if your current version is below 9.2.0:
npm install -g npm@9.2.0
3. Install gulp-cli globally
Any global installation of gulp
should be removed before installing gulp-cli
to avoid conflicts. The latter will run the local installation of gulp v4.0.0
which is already a devDependency in the project.
npm rm -g gulp
npm install -g gulp-cli
4. Install bower v1.8.14 globally
npm install -g bower@1.8.14
cd EventStore.UI
npm install
If npm install
succeeds, go to Step 6.
If you get errors related to MSBUILD, VS2017, or VC++ on Windows, follow the steps below to install the missing dependencies:
- Download Visual Studio Professional 2017 (version 15.9) (Trial) setup from here.
- When you run the setup, go to the Individual components tab, then use the search box at the top to select these components:
- Visual Studio C++ core features
- VC++ 2017 version 15.4 v14.11 toolset
- Windows 8.1 SDK
- MSBUILD Note that other components might get added automatically; do not remove them.
- Click "Install", and then click on "Continue".
- Wait for setup to finish installing all the components and dependencies.
- Now run these commands in the
EventStore.UI
directory:
npm clean-install
npm install
bower install
If you get the error message "bower.ps1 cannot be loaded because running scripts is disabled on this system" on Windows, run the command below in PowerShell:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Then, run bower install
again.
// Starts webserver with live reload
gulp connect
// Executes jshint
gulp lint
// Transforms HTML file templates into Angular.js module
gulp html
// Builds the project: Creates minified version of CSS, JS, etc.
gulp dist