-
Notifications
You must be signed in to change notification settings - Fork 3
Installation & Deployment
-
Download the repository
-
Install npm modules:
npm install
-
Install bower dependencies
bower install
-
Start up the server:
npm start
-
View in browser at http://localhost:8080
-
From the working directory, build the production code:
gulp build
-
Change into the
dist
directory, and start the application:pm2 start bin/www --name PhysicsInMotion
- MongoDB
- Node.js
- Express.js
- AngularJS
- Pug
- MathJax
- Gulp
The Physics in Motion web application is hosted on a DigitalOcean Droplet server. The specifications and configurations for creating the current server as follows:
- Operating System: Ubuntu 18.04 x64
- System Specifications: Memory: 4 GB, vCPUs: 2 vCPUs, SSD Disk: 80 GB, Transfer: 4 TB, Price: $20 a month
- No backup or block storage added
- Datacenter Region: Toronto 1
- Additional Options: Private Networking, IPv6, and Monitoring are enabled
Initial server setup based on Digitalocean best practices for Ubuntu 18.04.
The web server is handled by nginx, with certificates from Let's Encrypt, and pm2 is used to deploy the Node.js application and ensure that the application is running on the server.
Set up using Digitalocean's tutorial.
Set up Node.js using Digitalocean's tutorial.
Set up using Digitalocean's tutorial.
Set up using Digitalocean's tutorial.
Set up using a combination of Digitalocean's tutorial, as well as the official documentation.