erratic-gate/docs/tutorials/installation.md

49 lines
1.2 KiB
Markdown
Raw Normal View History

2019-08-02 13:39:45 +02:00
# Rularea simulatorului:
2019-07-26 13:16:08 +02:00
2019-08-02 13:39:45 +02:00
Exista 3 metode de a rula simulatorul:
2019-07-26 13:16:08 +02:00
2019-08-02 13:39:45 +02:00
1. Folosind [versiunea hostata pe heroku](https://logic-gate-simulator.herokuapp.com/):
2019-07-26 13:16:08 +02:00
2019-08-02 13:39:45 +02:00
Aceasta este cea mai usoara solutie - tot ce trebuie sa faceti este sa deschideti
[acest url](https://logic-gate-simulator.herokuapp.com/)
2019-07-26 13:16:08 +02:00
2019-08-02 13:39:45 +02:00
2. Folosind un server de dezvoltare:
2019-07-26 13:16:08 +02:00
2019-08-02 13:39:45 +02:00
Pentru inceput trebuie sa aveti [node.js & npm](https://nodejs.org/en/download/) si [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) instalate pe dizpozitiv.
2019-07-26 13:16:08 +02:00
2019-08-02 13:39:45 +02:00
Deschideti un terminal, si introduceti urmatoarele comenzi:
2019-07-26 13:16:08 +02:00
```sh
2019-08-02 13:39:45 +02:00
# Cloeaza repoul
2019-07-26 13:16:08 +02:00
git clone https://github.com/Mateiadrielrafael/logicGateSimulator
2019-08-02 13:39:45 +02:00
# Cd in folder
2019-07-26 13:16:08 +02:00
cd logicGateSimulator
2019-08-02 13:39:45 +02:00
# instaleaza librariile necesare
2019-07-26 13:16:08 +02:00
npm install
2019-08-02 13:39:45 +02:00
# ruleaza serverul de dezvoltare
2019-07-26 13:16:08 +02:00
npm run dev
```
2019-08-02 13:39:45 +02:00
Browserul va fi deschis automat la adresa serverului.
2019-07-26 13:16:08 +02:00
2019-08-02 13:39:45 +02:00
3. Prin compilarea locala a simulatorului
2019-07-26 13:16:08 +02:00
2019-08-02 13:39:45 +02:00
Pentru inceput, clonati repoul si instalati librariile dupa cum este explicat in optiunea 2.
Pentru a compila codul sursa, introduceti urmatoarea comanda:
2019-07-26 13:16:08 +02:00
```sh
npm run build
```
2019-08-02 13:39:45 +02:00
Pentru a rula simulatorul, rulati comanda:
2019-07-26 13:16:08 +02:00
```sh
2019-08-01 20:57:05 +02:00
npm start
2019-07-26 13:16:08 +02:00
```
2019-08-02 13:39:45 +02:00
Proiectul este acum accesibil sub portul `8080`