Reggy is a general-purpose regular expression generator that is exposed as a web application. Reggy assists you with the construction of regular expressions. The generator consists of three components, each for a different use case. Reggy generates regular expressions for a wide variety of programming languages and strives to generate regular expressions that are as efficient and concise as possible.
- Install Node.js version 8.x
- Install Angular CLI:
sudo npm install -g @angular/cli
- Install all the dependencies from the project root directory:
npm install
- Install graphviz:
sudo apt-get install graphviz
- Install pip:
sudo apt-get install -y python3-pip
- Install python graphviz package:
sudo pip3 install graphviz
npm run dev
: This will concurrently execute the Angular build, TypeScript compiler and Express server.
A window will automatically be opened at localhost:4200. Angular and Express files are being watched. Any change will automatically create a new bundle, restart the Express server and reload your browser.
The web app is deployed using Docker, thus docker ce needs to be installed on the system.
sudo apt-get install docker-ce
Change the working directory to the root directory of the project which contains the Dockerfile and run the following:
sudo docker build -f Dockerfile -t reggy:latest . --network=host
sudo docker run -p 49160:3000 -d reggy:latest
Install the Heroku CLI if it is not installed and then change the working directory to the root directory of the project.
heroku login
sudo heroku container:login
sudo heroku container:push web --app reggy
heroku container:release web --app reggy