hoakusa / logicgates

Logic gates simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logic gates simulator

View Demo

A basic logic schematic web page by Angular 2 Typescript and webpack. Feature:

  • Drag and drop logic gate to diagram.
  • Draggable elements and connection, by jsPlumb.
  • Detect connection between input and output only.
  • Working with Angular routing, directive, component.
  • Stylesheets with Bootstrap 4 beta - SASS

Quick start

# clone repo
$ git clone https://github.com/hoakusa/logicgates.git my-app

# change directory to your app
$ cd my-app

# install the dependencies with npm
$ npm install

# start the server
$ npm start

go to http://localhost:8080 in your browser.

Table of Contents

Getting Started

Dependencies

What you need to run this app:

  • node and npm (Use NVM)
  • npm install to install all dependencies or edit package.json

Developing

Start run development mode:

  • npm start

It will start a local server using webpack-dev-server which will watch, build (in-memory), and reload for you. The application can be checked at http://localhost:8080.

Production

To build your application, run:

  • npm run build

You can now go to /dist and deploy that to your server!

Documentation

1. Routing:

'/' is the main home of application, go and modify routing by edit app-routing.module.ts.

2. Library:

This application uses jsPlumb as core library to perform gate connection and behaviors inside diagram. Read more at documentation.

3. Intruction video:

Watch intruction video at the end of webpage to understand how application works.

Editor: Visual Studio Code

About

Logic gates simulator


Languages

Language:TypeScript 41.9%Language:JavaScript 37.6%Language:HTML 11.9%Language:CSS 8.6%