This repository contains the code for the back-end to the web app Quotastic, made as a project for the SkillUp Mentor Bootcamp.
See the quotastic-frontend repository for a screenshot and a more in-depth description of the project.
These instructions will get you a copy of the Quotastic back-end up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Node.js and NPM or compatible package manager (preferably Yarn)
- A working PostgreSQL instance
- Install all required dependencies by running
npm install
/yarn install
- Set the following environmental variables:
DATABASE_HOST
DATABASE_PORT
DATABASE_USER
DATABASE_PASS
DATABASE_NAME
JWT_SECRET
JWT_SECRET_EXPIRATION
(default: 3600)JWT_REFRESH_SECRET
JWT_REFRESH_SECRET_EXPIRATION
(default: 3600)
- Run the server using
npm run start
/yarn run start
Adjust the values in your .ENV
file to match the remove location. You might also want to reconfigure the
storage options if you are planning on using a CDN for file storage.