The client-facing application of The Stuyvesant Spectator, built in React.
We welcome pull requests from Spec Web developers and seasoned JavaScript developers alike! Please follow these steps to contribute.
For information on the things which are currently being focused on, please visit the ROADMAP.md file.
We use Issuu to host our newspaper PDFs. Every time we send, we have to upload the PDF to this platform and embed it into the website. Here are the instructions:
-
Sign in to https://issuu.com/ (ask previous editors for credentials).
-
Click the upload icon in the navigation bar and select the newest issue's PDF file.
-
Name the publication with the format "Volume XXX, Issue N". For the original publication date, use the date printed on the issue. Don't check any of the boxes and click "Publish Now".
-
Go to the publication list and click the
Embed
option for the issue you just published. -
Go to the "First, the basics." section and change the background color to
#333333
. -
Scroll down and click "Save & Get Code". Choose the
iFrame
option. It looks something like this:
<iframe style="..." src="//e.issuu.com/embed.html#FIRST_NUMBER/SECOND_NUMBER" frameborder="0" allowfullscreen></iframe>
- Copy the SECOND_NUMBER and, in the constants file, set the
ISSUU_CONFIG
to that number.
export const ISSUU_CONFIG = SECOND_NUMBER;
We use CircleCI for continuous integration. If you push to the staging
branch, the code will be synced to our staging S3 bucket (hosted on staging.stuyspec.com
). If you push to master
, it will be synced to the prod bucket (stuyspec.com
).