Skip to content

Commit 008bf61

Browse files
Merge pull request #1 from code-with-sam/upgrade-functionality
Upgrade functionality
2 parents dc4ebfc + 4be49c1 commit 008bf61

File tree

16 files changed

+532
-81
lines changed

16 files changed

+532
-81
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
# boilerplate
22
This project is a boilerplate for rapid development ontop of the steem network.
33

4-
## What does it include
4+
## What does it include
55
This boilerplate includes.
66
- Authenticate with SteemConnect/Logout
7-
- Get User Profile
8-
- Get Feed
7+
- Trending + latest post feeds
8+
- Logged In user profile + 'my blog' feed
9+
- @username page with profile info + blog feed
910
- Create Top Level Post
10-
- Upvote Top Level Post
11-
11+
- Upvote Top Level Post from feed
12+
- Single Page for posts + comments thread
13+
- Upvote + comment on single page
1214

1315
## setup & install
1416
- install node.js & NPM - [https://nodejs.org/en/](https://nodejs.org/en/)
1517
- clone repo
1618
- Go to [https://v2.steemconnect.com/dashboard](https://v2.steemconnect.com/dashboard) and create a new app, it currently costs 3 STEEM.
17-
- add the Redirect URI - http://localhost:3000/auth/
19+
- add the Redirect URI - http://localhost:3000/auth/
1820
- open ```config.example.js``` and rename to ```config.js``` enter your ```client_id``` from steemconnect and redirect uri to 'http://localhost:3000/auth/', update the session secret to a new secure random string
1921
- npm install // to download dependencies
2022
- npm start // run the project on default port 3000

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ app.use(cookieParser());
3737
app.use(express.static(path.join(__dirname, 'public')));
3838

3939
app.use('/', index);
40-
app.use('/user', user);
40+
app.use('/dashboard', user);
4141
app.use('/auth', auth);
4242
app.use('/logout', auth);
4343
app.use('/feed', feed);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "boilerplate",
3-
"version": "0.0.0",
3+
"version": "0.2.0",
44
"private": true,
55
"scripts": {
66
"start": "node ./bin/www"

public/css/style.css

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,53 @@
22
box-sizing: border-box;
33
}
44
body {
5-
padding: 50px;
6-
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
5+
/*font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;*/
76
}
87

98
a {
10-
color: #00B7FF;
9+
/*color: #00B7FF;
1110
margin: 0 20px 20px 0;
12-
display: inline-block;
11+
display: inline-block;*/
1312
}
1413

15-
main {
16-
max-width: 600px;
14+
main, aside {
15+
padding: 30px 0;
16+
max-width: 520px;
17+
margin: 0 auto;
18+
}
19+
.tags {
20+
margin: 10px 0;
21+
}
22+
.tags span {
23+
border: solid 1px #ccc;
24+
padding: 5px;
25+
border-radius: 5px;
26+
margin: 0 5px 0 0;
1727
}
1828

1929
img {
2030
max-width: 100%;
2131
}
32+
.item {
33+
border: solid 1px #ccc;
34+
margin: 30px 0;
35+
}
36+
.comment {
37+
margin: 15px 0;
38+
}
39+
.comment-level-1 {
40+
padding-left: 15px;
41+
}
42+
.comment-level-2 {
43+
padding-left: 30px;
44+
}
45+
.comment-level-3 {
46+
padding-left: 45px;
47+
}
48+
49+
.meta form {
50+
display: inline-block;
51+
}
2252

2353
input, label, textarea, button {
2454
margin: 15px 0;
@@ -45,5 +75,16 @@ button, input[type="submit"] {
4575

4676
.vote {
4777
width: 100px;
48-
margin: 0 0 40px;
78+
}
79+
80+
.comment-message {
81+
margin-top: 20px;
82+
}
83+
.send-comment {
84+
cursor: pointer;
85+
display: inline-block;
86+
border-radius: 3px;
87+
padding: 10px;
88+
border: solid 1px #7b7b7b;
89+
margin: 20px 0 40px;
4990
}

0 commit comments

Comments
 (0)