Skip to content

Commit a63217b

Browse files
author
Michael
authored
Merge pull request #12 from mldangelo/about
About
2 parents dc4550f + 5e8b1be commit a63217b

37 files changed

+801
-457
lines changed

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ My personal website. Built using Node.js, React, Express, React-Router, Hot Modu
44
### Tests:
55
[![Code Climate](https://codeclimate.com/github/mldangelo/mldangelo/badges/gpa.svg)](https://codeclimate.com/github/mldangelo/mldangelo)
66
[![Build Status](https://travis-ci.org/mldangelo/mldangelo.svg?branch=master)](https://travis-ci.org/mldangelo/mldangelo)
7+
[![Dependency Tracking](https://david-dm.org/mldangelo/mldangelo.svg)](https://david-dm.org/)
78

8-
### Requirements:
9-
* node >= v6.0
9+
### Dependencies:
10+
* node >= v6.0.0
11+
* yarn >= v0.18.
1012

1113
### Installation:
1214

1315
1. Run the following commands:
1416
```bash
1517
git clone git://github.com/mldangelo/mldangelo.git
1618
cd mldangelo
17-
npm install
19+
yarn
1820
```
1921

2022
2. Optionally configure nginx. Run:
@@ -23,7 +25,8 @@ My personal website. Built using Node.js, React, Express, React-Router, Hot Modu
2325
sudo ln [root directory]/nginx/mldangelo.conf [nginx directory]/sites-enabled/mldangelo.conf
2426
sudo service nginx restart
2527
```
26-
Note: HTTPS block should be removed if step 2 (below is not followed)
28+
Note: HTTPS block should be removed if step 3 (below) is not followed.
29+
2730
3. Optionally configure a SSL certificate using Certbot. See [here](https://certbot.eff.org/#ubuntutrusty-nginx)
2831
for installation and setup instructions. A cronjob such as:
2932

@@ -38,17 +41,15 @@ for installation and setup instructions. A cronjob such as:
3841

3942
1. ``` cp sample.env .env ``` and set values as appropriate.
4043

41-
2. cd into [root directory] and run:
44+
2. Run `npm run forever-start` and navigate to `<ip>:<port> (default=7999)`.
4245

43-
```bash
44-
npm run build
45-
npm start
46-
```
47-
If running in background, use nohup or screen.
48-
3. Navigate to `<ip>:<port> (default=7999)` and enjoy.
46+
### Developing:
47+
1. Set `NODE_ENV=development` in `.env`.
48+
2. Run `npm run dev`
4949

5050
### Contributors
5151
- [@mldangelo](https://github.com/mldangelo)
52+
- [@typpo](https://github/typpo)
5253

5354
### Acknowlegements
5455
- Special thanks to [@typpo](https://github.com/typpo) for tirelessly answering all of my node.js and react questions.

app/components/Resume.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

app/components/Resume/Courses.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@ const getRows = () => courses.sort((a, b) => {
1919
));
2020

2121
const Courses = () => (
22-
<article>
23-
<div className="courses">
24-
<div className="title">
25-
<h3>Selected Courses</h3>
26-
</div>
27-
<ul className="course-list">
28-
{getRows()}
29-
</ul>
22+
<div className="courses">
23+
<div className="link-to" id="courses" />
24+
<div className="title">
25+
<h3>Selected Courses</h3>
3026
</div>
31-
</article>
27+
<ul className="course-list">
28+
{getRows()}
29+
</ul>
30+
</div>
3231
);
3332

3433
export default Courses;

app/components/Resume/Education.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const getRows = () => degrees.map(degree => (
1212

1313
const Education = () => (
1414
<div className="education">
15+
<div className="link-to" id="education" />
1516
<div className="title">
1617
<h3>Education</h3>
1718
</div>

app/components/Resume/Experience.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const getRows = () => positions.map(job => (
1212

1313
const Experience = () => (
1414
<div className="experience">
15+
<div className="link-to" id="experience" />
1516
<div className="title">
1617
<h3>Experience</h3>
1718
</div>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from 'react';
2+
import { Link } from 'react-router';
3+
4+
const References = () => (
5+
<div className="references">
6+
<div className="link-to" id="references" />
7+
<div className="title">
8+
<Link to="/contact">
9+
<h3>References are available upon request</h3>
10+
</Link>
11+
</div>
12+
</div>
13+
);
14+
15+
export default References;

app/components/Resume/Skills.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class Skills extends Component {
6969
render() {
7070
return (
7171
<div className="skills">
72+
<div className="link-to" id="skills" />
7273
<div className="title">
7374
<h3>Skills</h3>
7475
<p>Note: I think these sections are silly, but everyone seems to have one.</p>

app/components/Stats/Personal.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import React, { Component } from 'react';
2+
3+
import Table from './Table';
4+
import data from '../../data/stats';
5+
6+
class PersonalStats extends Component {
7+
8+
constructor(props) {
9+
super(props);
10+
this.state = { data };
11+
}
12+
13+
componentDidMount() {
14+
this.timer = setInterval(() => this.tick(), 100);
15+
}
16+
17+
tick() {
18+
const divisor = 1000 * 60 * 60 * 24 * 365.2421897; // ms in an average year
19+
const birthTime = new Date('1990-02-05T09:24:00');
20+
this.state.data.age.value = ((Date.now() - birthTime) / divisor).toFixed(9);
21+
this.setState({
22+
data: this.state.data,
23+
});
24+
}
25+
26+
render() {
27+
return (
28+
<div>
29+
<h3>Some stats about me</h3>
30+
<Table
31+
data={Object.values(this.state.data)}
32+
/>
33+
</div>
34+
);
35+
}
36+
}
37+
38+
export default PersonalStats;
Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
import React, { Component } from 'react';
2-
import { Link } from 'react-router';
32

43
import axios from 'axios';
54

6-
import Table from './Stats/Table';
7-
import data from '../data/github';
5+
import Table from './Table';
6+
import data from '../../data/github';
87

98
class Stats extends Component {
109

1110
constructor(props) {
1211
super(props);
13-
this.state = {
14-
data,
15-
};
12+
this.state = { data };
1613
}
1714

1815
componentDidMount() {
@@ -32,17 +29,12 @@ class Stats extends Component {
3229

3330
render() {
3431
return (
35-
<article className="post" id="stats">
36-
<header>
37-
<div className="title">
38-
<h2><Link to="/stats">Some stats about this site</Link></h2>
39-
<p>Click <a href="https://github.com/mldangelo/mldangelo/tree/master/scripts">here</a> to see how these are generated.</p>
40-
</div>
41-
</header>
32+
<div>
33+
<h3>Some stats about this site</h3>
4234
<Table
4335
data={data}
4436
/>
45-
</article>
37+
</div>
4638
);
4739
}
4840
}

app/components/Stats/Table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Table extends Component {
1717

1818
render() {
1919
return (
20-
<table style={{ width: '100%' }}>
20+
<table>
2121
<tbody>
2222
{this.getRows()}
2323
</tbody>

0 commit comments

Comments
 (0)