Installation
Installation tutorial
Requirement
Node.js and npm are required. Please install them before this tutorial.
Fork, clone or download this project
git clone git@github.com:sandbox-bio/sandbox.bio.git
Install all required packages for Sandbox.bio
step 1
cd sandbox.bio
npm install
cd app
npm install
Build the sandbox.bio app
npm run build
npm run dev
Your application is ready~! 🚀
- Local: http://0.0.0.0:1111
- Network: http://xx.xxx.xx.xx:1111
Install ngnix
We recommend this tutorial for installing nginx and have adapted the following steps.
3.Creating our own website
We're using a "sandbox" folder instead of "tutorials".
cd /var/www
sudo mkdir sandbox
cd sandbox
sudo nano index.html
4. Setting up virtual host
In /etc/nginx/sites-enabled we create the sandbox file
cd /etc/nginx/sites-enabled
sudo nano sandbox
We define the root
and server name
variables as shown below.
server {
listen 80;
listen [::]:80;
server_name sandbox.bio.france-bioinformatique.fr;
root /var/www/sandbox/bio;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}
Fork, clone or download this project
cd /var/wwww
git clone git@github.com:sandbox-bio/sandbox.bio.git
####Install all required packages for Sandbox.bio
step 1
cd sandbox.bio
npm install
cd app
npm install
Build the sandbox.bio app
npm run build
npm run dev
We're adapting nginx to run sandbox.bio
cd /etc/nginx/sites-enabled
sudo nano sandbox
server {
listen 80;
server_name sandboxbio.france-bioinformatique.fr;
return 301 https://$server_name$request_uri; #Redirection
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name sandboxbio.france-bioinformatique.fr;
root /var/www/sandbox.bio/app/public;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}
Restart Nginx
sudo service nginx restart