Difference between revisions of "Install and configure Visual Studio Code for Eywa"

From wiki.ferrari.mo.it
Jump to navigation Jump to search
 
(2 intermediate revisions by one other user not shown)
Line 35: Line 35:
  
 
  npm start
 
  npm start
 +
 +
=== Download last version of MDB angular (untested) ===
 +
 +
Go to
 +
https://git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard
 +
and log in with the credentials of fabio.ferrari@qwyddy-tech.com
 +
 +
Then, download the version you need as a .zip.
 +
 +
In the root folder of the zipped directory, there is a file named
 +
ng-uikit-pro-standard-x.yy.zz.tgz
 +
 +
Copy it in the root folder of eywa (where the package.json file is).
 +
 +
Then, prior to executing step No. 6, edit the package.json file in order to match the version of MDB angular (same version of the .tgz file).
 +
 +
=== Modules needed ===
 +
 +
Install the following modules:
 +
 +
TODO
 +
 +
== Backend ==
 +
 +
1. Start Visual Studio Code, then select
 +
eywa-3/backend
 +
folder.
 +
 +
2. Install Visual Studio C++
 +
TODO
 +
 +
3. Install Python.
 +
 +
Download
 +
python-3.10.2-amd64.exe
 +
from
 +
https://www.python.org
 +
 +
Install as administrator. Customize installation, check the VERY IMPORTANT "Install for all Users" in the SECOND dialog (the first one is not enough).
 +
 +
Then install in
 +
C:\Python310\
 +
directory. Don't use spaces, so don't install in
 +
C:\Program Files\Python310\
 +
 +
In node, configure python path with
 +
npm config set python "C:\Python310\python.exe"
 +
 +
As a test, you can try to install sqlite3 alone:
 +
npm install sqlite3
 +
(several warnings are normal).
 +
 +
4. Install
 +
npm install
 +
 +
5. Run
 +
node server.js

Latest revision as of 11:56, 16 March 2022

Install and configure Visual Studio Code for Eywa[edit]

1. Download and install Visual studio code from https://code.visualstudio.com/

Install it with default settings, the only suggestion is to not add it to PATH.

2. Download and install node from https://nodejs.org/en/

The current version is 10.16.0 LTS. Different *stable* version should not be a problem.

3. Install Git following the instructions at https://www.atlassian.com/git/tutorials/install-git#windows

Download Git from https://gitforwindows.org/ .

4. In Visual studio code, open a terminal

Restart Visual Studio if it is already open. Then, go to Terminal - New .

Then, execute the following commands:

git config --global user.name "Fabio Ferrari"
git config --global user.email "fabiofe@bitbucket.org"

5. Then, download the sources

git clone https://fabiofe@bitbucket.org/fabiofe/eywa.git

And, from the upper Git menu, checkout to productiontracking.

6. Download packages

npm install

7. Start application

npm start

Download last version of MDB angular (untested)[edit]

Go to

https://git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard

and log in with the credentials of fabio.ferrari@qwyddy-tech.com

Then, download the version you need as a .zip.

In the root folder of the zipped directory, there is a file named

ng-uikit-pro-standard-x.yy.zz.tgz

Copy it in the root folder of eywa (where the package.json file is).

Then, prior to executing step No. 6, edit the package.json file in order to match the version of MDB angular (same version of the .tgz file).

Modules needed[edit]

Install the following modules:

TODO

Backend[edit]

1. Start Visual Studio Code, then select

eywa-3/backend

folder.

2. Install Visual Studio C++ TODO

3. Install Python.

Download

python-3.10.2-amd64.exe

from

https://www.python.org

Install as administrator. Customize installation, check the VERY IMPORTANT "Install for all Users" in the SECOND dialog (the first one is not enough).

Then install in

C:\Python310\

directory. Don't use spaces, so don't install in

C:\Program Files\Python310\

In node, configure python path with

npm config set python "C:\Python310\python.exe"

As a test, you can try to install sqlite3 alone:

npm install sqlite3

(several warnings are normal).

4. Install

npm install

5. Run

node server.js