Skip to content

iCanSort is a learning tool to help students study and visualise sorting algorithms.

License

Notifications You must be signed in to change notification settings

team10nb/i-can-sort

Repository files navigation

i-can-sort

The software iCanSort is a learning tool to help students study and visualise sorting algorithms and their correctness available on Windows and macOS. This project i-can-sort is built with React and Electron based on NodeJS with npm.

For contributing, please refer to COUNTRIBUTING.md.
For maintenance, please refer to MaintenanceGuide.md.
For code report, please refer to CodeReport.md.
For downloading the executable software, please refer to Release.

Getting Started with iCanSort

We provide you the installation packages of the software. You can download directly here.

We also provide you a User Manual here.

Run the Source Code

1. Download & Install NodeJS and npm

You’ll need to have [email protected] with [email protected] but NO later version on your local development machine.

You can follow the link below to download for Windows and Mac.

For Windows 64-bit, you can download and install:

https://nodejs.org/dist/v14.15.3/node-v14.15.3-x64.msi

For Mac, you can download and install:

https://nodejs.org/dist/v14.15.3/node-v14.15.3.pkg

Or you can find downloads that fits your system here by yourself:

https://nodejs.org/dist/v14.15.3/

Now you shall be able to execute node -v in your terminal and see v14.15.3

2. Configuration Guide

In the project directory, you should run following command in your terminal in order to configure the dependencies.

npm install -g [email protected]

To install the specific npm version 6.14.9

npm -v

Make sure that you see 6.14.9 in your terminal. To ensure that you install the specific npm version 6.14.9.

npm install

Installs all the develepment dependencies.

If this step took more than 10 minutes, you shall consider to connect to eduroam or open a VPN and set proxy for npm. npm config set proxy http://server:port npm config set https-proxy http://server:port

Note that using a mirror may result in some error for some reason. Please use official registry.

3. Available Script

npm start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

Now you shall see iCanSort in your bowswer.

Note that using broswer view the app does not utilise electron features, 'view Group's website' and 'export note' functions cannot work.

npm test

Launches the test runner in the interactive watch mode. See the section about running tests for more information.

npm run build

Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

See the section about deployment for more information.

npm run electron-start

Builds the app and launch electron to hava a development view of this app.

npm run dist-win

Builds the app and create an installer for Windows to the dist folder.

npm run dist-mac

Builds the app and create an installer for Mac to the dist folder.

npm run styleguide

Launch a web view of the Style Guidist. This will build JavaScript Doc in each folder and display them in a webpage.

Learn More

We create this app by Create React App. You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

To learn Electron, check out the Electron documentation.

About

iCanSort is a learning tool to help students study and visualise sorting algorithms.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages