- Install nodejs
- Clone repo:
git clone [email protected]:lmccart/art-software.git
- Navigate to repo:
cd art-software
- Install dependencies:
npm install
- Copy in
.env
andart-software-5624b11287ef.json
files. (Email Lauren)
node server.js
- view at http://localhost:3000
The server component is currently hosted on a DigitalOcean droplet (http://167.99.175.36), using Node.js and mongoDB. The uploaded artist files are hosted on Google Cloud Storage. Eventually, we would like to move this off of DigitalOcean and onto the DMA server. We are currently using jSPDF to generate PDFs on the client side. This is a temporary test and we are exploring other tools.
The Backend spec outlines the API the server provides. TODO: Move this document to this readme once API is more stable.
-
DigitalOcean
ssh [email protected]
- https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/
- https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-18-04 (mongodb)
- https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-mongodb-on-ubuntu-16-04#part-two-securing-mongodb (mongodb)
-
PM2
- https://pm2.keymetrics.io/ (PM2 task runner)
pm2 start server.js
pm2 stop server.js
pm2 save
node server.js
to test before using pm2
-
MongoDB
-
Magic Link
-
Session Management
-
Google Cloud Storage
-
GCH & CORS
- https://cloud.google.com/storage/docs/gsutil_install (CORS)
- https://cloud.google.com/storage/docs/gsutil/commands/cors (CORS)
- https://cloud.google.com/storage/docs/configuring-cors (CORS)
gsutil cors set cors.json gs://art-software
(CORS)
-
PDF Generation
- http://raw.githack.com/MrRio/jsPDF/master/docs/index.html (client-side, currently using)
- https://github.com/foliojs/pdfkit (server-side, alternative option)