- Make sure you have
node
andnpm
installed (https://nodejs.org) - Run
npm install
to install all the dependencies for hosting the server - If you're using a local database for testing, install
mysql-server
and set up a database - Set the environment variables:
- PORT - the port over which to host, default is 8000
- USE_HTTPS - whether or not to enforce HTTPS-only cookies for the session, default is false
- SECRET - the secret used by the session store manager, default is 'test secret'
- DB_HOST - the database hostname, default is 'localhost'
- DB_USER - the username for accessing the database, default is 'max'
- DB_PASS - the password for accessing the database, default is 'secretpass'
- DB_DATABASE - the name of the database to use, default is 'regex_visualiser'
- Create a database
regex_visualiser
and run./schema.sql
to set up the correct tables - Run
npm start
to launch the web server
-
Notifications
You must be signed in to change notification settings - Fork 0
My A-level Computer Science coursework - a program which compiles regular expressions into DFAs, renders them, and tests strings against those DFAs. Also connected to a DB to support use in the classroom.
joker314/regex_visualiser
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
My A-level Computer Science coursework - a program which compiles regular expressions into DFAs, renders them, and tests strings against those DFAs. Also connected to a DB to support use in the classroom.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published