1.2 KiB
1.2 KiB
Running the simulator
There are 3 ways to get the simulator up and running:
- Using the version hosted on heroku:
This is by far the fastest solution - everything you need to do is open the github-pages url
- Using a development server:
First you need to have node.js & npm and git installed on your machine.
Open a terminal in the desired folder and run:
# Clone repo
git clone https://github.com/Mateiadrielrafael/logicGateSimulator
# Cd into the folder
cd logicGateSimulator
# install dependencies
npm install
# run development server
npm run dev
- Building the simulation yourself
First, clone the repo and install the dependencies as explained in option 2.
To build the source run:
# build program
npm run build
To then run the simulation, open a server in the dist directory. A simple solution using npm:
# instal nano-server globally
npm i nano-server -g
# change directory
cd dist
# run server
nano-server
# linux
open http://localhost:5000
# Windows
start http://localhost:5000