To install npm and Node.js, follow the instructions provided in the official npm documentation.
To install npm and the correct version of Node.js specified in the package.json file, follow these steps:
-
Open your terminal or command prompt.
-
Navigate to the root directory of your project.
-
Run the following command to install npm:
npm install
This will install npm and all the dependencies specified in the package.json file.
brew install sqlite3
To symlink the actual dataset folder to the Datasets folder in the root directory, follow these steps:
-
Open your terminal or command prompt.
-
Navigate to the root directory of your project.
-
Run the following command to create a symlink:
ln -s /path/to/actual/dataset Datasets
Replace
/path/to/actual/dataset
with the actual path to your dataset folder.
To initialize the database, follow these steps:
-
Open your terminal or command prompt.
-
Navigate to the root directory of your project.
-
Create an empty directory named
db
. -
Run the following command to open the SQLite3 shell and run the following command to read and execute the
initdb
script:sqlite3 db/vast.2022.mc2 '.read initdb'
This will initialize the database with the necessary tables and data.
That's it! You have successfully installed npm, the correct version of Node.js, SQLite3, symlinked the dataset folder, and initialized the database. You are now ready to start working with your project.