Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mldangelo committed Oct 5, 2018
1 parent 7c2772f commit a10d6c2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 35 deletions.
39 changes: 15 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ My personal website. Built using Node.js, React, Express, React-Router, Hot Modu
[![Greenkeeper badge](https://badges.greenkeeper.io/mldangelo/mldangelo.svg)](https://greenkeeper.io/)

### Dependencies:
* node >= v6.0.0
* yarn >= v0.20.0
Tested with:
* node >= v8.12.0
* yarn >= v1.10.0

### Installation:

Expand All @@ -21,32 +22,22 @@ My personal website. Built using Node.js, React, Express, React-Router, Hot Modu
yarn
```

2. Optionally configure nginx. Run:

```bash
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.

3. Optionally configure a SSL certificate using Certbot. See [here](https://certbot.eff.org/#ubuntutrusty-nginx)
for installation and setup instructions. A cronjob such as:

```bash
0 0 1 * * sudo /home/ubuntu/certbot/certbot-auto renew --quiet --no-self-upgrade
```

should be set to automatically renew the certificate in production.
### Developing:
1. ``` cp sample.env .env ``` and set values as appropriate.
2. Run `npm run dev` and navigate to `<ip>:<port> (localhost:7999)`.

### Running:
### Deploying:
This branch is configured for deployment with github pages. To deploy:
1. Modify the `CNAME` file to reference your custom domain.
2. Change `NODE_ENV` to `production` in `.env`
3. Run `npm run deploy`
4. Go to `https://github.com/[your github username]/personal-site/settings` and configure accordingly

1. ``` cp sample.env .env ``` and set values as appropriate.
<img" src="docs/gh-pages.png">

2. Run `npm run forever-start` and navigate to `<ip>:<port> (default=7999)`.
5. Configure your domains DNS record. See https://help.github.com/articles/using-a-custom-domain-with-github-pages/ for more information.

### Developing:
1. Set `NODE_ENV=development` in `.env`.
2. Run `npm run dev`
Please feel free to reach out to me by filing an issue or at [email protected] for help configuring your project.

### Contributors
- [@mldangelo](https://github.com/mldangelo)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE → docs/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Michael D'Angelo
Copyright (c) 2018 Michael D'Angelo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Binary file added docs/gh-pages.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,5 @@ NODE_ENV=development

PORT=7999

# see https://developer.github.com/apps/building-oauth-apps/
GITHUB_OAUTH=ABCDEFG

# for mldangelo.com/music (https://www.last.fm/api)
LASTFM_KEY=12345
LASTFM_USERNAME=nopenopenope

# any random string
SESSION_SECRET=1234567890

# Google analytics ID
GA_ID=UA_123456

0 comments on commit a10d6c2

Please sign in to comment.