- Install Nodejs https://nodejs.org/en/download/
- `NodeJS LTS v14.x and npm 6.14.x
- Download/Install MongoDB from https://www.mongodb.com/try/download/community
- v.4.4
- Also get compass for a workbench of the database to inspect content etc.
- Download Anaconda/miniconda
- v4.9+
- Python version should be managed through virtual env using
conda env
- clone the repo using
git clone
- navigate to
react
- run
npm install
to install node modules - run
npm start
to start the service onlocalhost:8000
- navigate to
nodejs
- run
npm install
to install node modules - run
npm start
to host express server onlocalhost:3001
and connect to database atlocalhost:27017
(Look for confirmation in shell)
- navigate to
nodejs
- run
npm run build
to build typescript into JS using tsc
- (On windows) cd to
${mongodb_install_dir}/bin
- Run
mongod --dbpath ${project_directory}/db
to host data contained in project folder- Note if using git-bash need to use
./mongod
instead and so forth
- Note if using git-bash need to use
- Open another terminal to
${mongodb_install_dir}/bin
- Connect to db REPL shell using
mongo
- Navigate to the folder containing the
.yml
file - Use the
conda env create -f ${filename}
command to create environment (see https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-from-an-environment-yml-file)
- react
- Front end react application
- nodejs
- Backend with Node.js and express
- db
- Database files for Mongodb
- ds
- Data analysis scripts using python/R