My personal website. Built using Node.js, React, Express, React-Router, Hot Module Reloading, Webpack and many other technologies.
- node >= v6.0.0
- yarn >= v0.18.
- Run the following commands:
git clone git://github.com/mldangelo/mldangelo.git
cd mldangelo
yarn
- Optionally configure nginx. Run:
sudo ln [root directory]/nginx/mldangelo.conf [nginx directory]/sites-enabled/mldangelo.conf
sudo service nginx restart
Note: HTTPS block should be removed if step 3 (below) is not followed.
- Optionally configure a SSL certificate using Certbot. See here for installation and setup instructions. A cronjob such as:
0 0 1 * * sudo /home/ubuntu/certbot/certbot-auto renew --quiet --no-self-upgrade
should be set to automatically renew the certificate in production.
-
cp sample.env .env
and set values as appropriate. -
Run
npm run forever-start
and navigate to<ip>:<port> (default=7999)
.
- Set
NODE_ENV=development
in.env
. - Run
npm run dev
- Special thanks to @typpo for tirelessly answering all of my node.js and react questions.
- Template based on Future Imperfect by @ajlkn for HTML5 UP.