https://openscienceresearchpark.com/
https://x.com/cilibrar/status/1868028637821481347
Based on the paper Clustering by Compression by Cilibrasi and Vitányi
- Go to: https://account.ncbi.nlm.nih.gov/settings/ > Account Settings
- In the API Key Management section at the bottom, take the API key
cd ncd-calculator
- Create the
.env
file in the source root folder
ncd-calculator
├── .env
├── api
├── src
├── ......
- Create environment variables in .env file:
VITE_NCBI_API_KEY=<XXX-API-KEY-FROM-NCBI>
VITE_BACKEND_BASE_URL=<BACKEND-SERVER-DOMAIN> (i.e. https://openscienceresearchpark.com/api)
- Running commands
npm install && npm run dev
cd complearn-genbank
- Setting up google & github authentication
Register an oauth app for github: https://github.com/settings/applications/new
Register an oauth app for google: https://console.cloud.google.com/apis/credentials
- Create the
.env
file in the source root folder
complearn-genbank
├── .env
├── bin
├── routes
├── app.ts
├── ......
- Create environment variables in .env file:
GOOGLE_CLIENT_ID=<GOOGLE_CLIENT_ID>
GOOGLE_CLIENT_SECRET=<GOOGLE_CLIENT_SECRET>
GITHUB_CLIENT_ID=<GITHUB_CLIENT_ID>
GITHUB_CLIENT_SECRET=<GITHUB_CLIENT_SECRET>
GENBANK_API_KEY_1=<GENBANK_SHARED_API_KEY_1>
GENBANK_API_KEY_2=<GENBANK_SHARED_API_KEY_2>
GENBANK_API_KEY_3=<GENBANK_SHARED_API_KEY_3>
FRONTEND_BASE_URL=<FRONTEND_BASE_URL> (i.e. https://openscienceresearchpark.com)
BASE_URL=<BACKEND_BASE_URL> (i.e. https://openscienceresearchpark.com/api)
PORT=3001
Each sub-project has their own respective Dockerfile. All running by the docker-compose.yml
in the root folder. Run this to start all services:
cd scripts
./prod_compose_build_up.sh # docker-compose build and up all services (except ncd-calculator)
./deploy.sh # build ncd-calculator and serve at openscienceresearchpark.com
./shawn_staging_build.sh # build ncd-calculator and serve at www.staging.openscienceresearchpark.com
./nam_staging_build.sh # build ncd-calculator and serve at complearn.staging.openscienceresearchpark.com
./teardown.sh # teardown all services