Tworeporters.com
a little project I did for a client to create a blazing fast searchable archive of 40+ years of newspaper reporting. The project is built on the MERN stack. It uses nodemailer to send contact us emails to the client.
to set up:
-
clone repo into its own directory.
-
cd into the directory
-
run
npm install
-
cd into server
-
run
node index
to start the server -
Open a new terminal window and..
-
cd into client
-
run
npm start
to start the client -
You will need to set
REACT_APP_RECAPTCHA_PUBLIC_KEY
to a valid recaptcha key in your .env for recaptcha to work.
todo: use next.js or gatsby.js to make site better for SEO. todo: add admin side to allow articles to be managed.
On the Production Server:
To check the status of the app:
sudo systemctl status tworeporters
to start the app:
sudo systemctl start tworeporters
to restart the app:
sudo systemctl restart tworeporters
to stop the app:
sudo systemctl stop tworeporters
to deploy to the server:
npm run client:build-deploy
npm run server:deploy
will build and deploy the react app and deploy the server respectively.