Skip to content

Commit 31f4636

Browse files
committed
change link in the bio to link tree , vercel deploy buitton updates with KEY env variable
1 parent b66c166 commit 31f4636

File tree

6 files changed

+36
-22
lines changed

6 files changed

+36
-22
lines changed

README.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Linkin · [![DeepScan grade](https://deepscan.io/api/teams/14086/projects/17178/branches/386441/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=14086&pid=17178&bid=386441) [![codecov](https://codecov.io/gh/RizkyRajitha/linkin/branch/master/graph/badge.svg?token=DPE3YVUYUW)](https://codecov.io/gh/RizkyRajitha/linkin) ![license](https://img.shields.io/github/license/rizkyrajitha/linkin??style=plastic)
66

7-
## Linkin is a customizable self hosted link in the bio platform.
7+
## Linkin is a customizable self-hosted link tree platform.
88

99
<!-- <br>
1010
<br>
@@ -13,7 +13,7 @@
1313
### You have absolute control
1414
1515
### Add your custom fonts
16-
### No branding , it's yours
16+
### No branding, it's yours
1717
1818
### You control your data . -->
1919

@@ -22,34 +22,36 @@
2222

2323
## Deploy with Vercel
2424

25-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2FRizkyRajitha%2Flinkin&env=DBURL&envDescription=PostgreSQL%20database%20URL&demo-title=Linkin%20&demo-description=Linkin%20is%20a%20customizable%20self%20hosted%20link%20in%20the%20bio%20platform%20.%20And%20it's%20ready%20for%20you)
25+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2FRizkyRajitha%2Flinkin&env=DBURL,KEY&demo-title=Linkin&demo-description=Linkin%20is%20a%20customizable%20self%20hosted%20link%20tree%20platform%20%2C%20And%20we%20are%20ready%20to%20roll)
26+
27+
<!-- [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2FRizkyRajitha%2Flinkin&env=DBURL&envDescription=PostgreSQL%20database%20URL&demo-title=Linkin%20&demo-description=Linkin%20is%20a%20customizable%20self%20hosted%20link%20in%20the%20bio%20platform%20.%20And%20it's%20ready%20for%20you) -->
2628

2729
## Deploy with Heroku
2830

2931
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/RizkyRajitha/linkin)
3032

3133
<!-- [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/RizkyRajitha/linkin&env[DBURL]=postgresdburl&env[KEY]=123) -->
3234

33-
![Screenshot_2021-05-22 LinkIn's Link In The Bio Page](https://user-images.githubusercontent.com/38534289/119221911-4ca94f80-bb0f-11eb-94ff-31f1c3a51d06.png)
35+
![Screenshot_2021-05-22 LinkIn's Link tree Page](https://user-images.githubusercontent.com/38534289/119221911-4ca94f80-bb0f-11eb-94ff-31f1c3a51d06.png)
3436

3537
![Screenshot_2021-05-22 Linkin Dashboard](https://user-images.githubusercontent.com/38534289/119221942-7d898480-bb0f-11eb-9175-5e139fa57f0a.png)
3638

3739
![Screenshot_2021-05-22 Linkin Dashboard](https://user-images.githubusercontent.com/38534289/119221939-7c585780-bb0f-11eb-944f-514beb5573b7.png)
3840

3941
### Getting started
4042

41-
- hosting
43+
- Hosting
4244
- set environment variables
4345
- **Mandatory**
4446
- `DBURL` - **Postgres** database url
4547
- `KEY` - random secret key
4648
- **Optional**
4749
- `changePasswordEnabled` - for showcase so that anonymous users cant change the password . default set to `true` .
48-
- after successfully deploying visit `youdomain/admin` to view admin login
49-
- use default login credentials
50-
- username = `admin`
51-
- password = `linkin123`
52-
- after a successfull login you will be able to see above admin dashboard.
50+
- after successfully deploying visit `youdomain/admin` to view admin login
51+
- use default login credentials
52+
- username = `admin`
53+
- password = `linkin123`
54+
- after a successfull login you will be able to see above admin dashboard.
5355

5456
### Developing locally
5557

@@ -67,7 +69,7 @@ exports.DBURLLOCAL = "postgres://linkin:123@localhost:5432/linkin";
6769
exports.SECRETKEY = "123";
6870
```
6971

70-
#### Clone and install dependancies
72+
#### Clone and install dependencies
7173

7274
```
7375
git clone https://github.com/RizkyRajitha/linkin.git
@@ -77,7 +79,7 @@ npm i
7779

7880
#### Database migration
7981

80-
**you must have postgres database setup locally**
82+
**you must have Postgres database setup locally**
8183

8284
```
8385
node scripts/migrate.js
@@ -91,9 +93,20 @@ npm run dev
9193

9294
### Build with
9395

96+
- [Next.Js](https://nextjs.org/) .
97+
<!-- - ![Nextjs logo](https://upload.wikimedia.org/wikipedia/commons/thumb/8/8e/Nextjs-logo.svg/800px-Nextjs-logo.svg.png) -->
98+
- [Postgres](https://www.postgresql.org/) .
99+
100+
### Currently supported hosting in
101+
102+
- [Vercel](https://vercel.com/) .
103+
- [Heroku](https://heroku.com/) .
104+
105+
<!-- ### Build with
106+
94107
- [NextJs](https://nextjs.org/)
95108
- <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/8e/Nextjs-logo.svg/800px-Nextjs-logo.svg.png" width="150" title="nextjs logo">
96-
<!-- - ![Nextjs logo](https://upload.wikimedia.org/wikipedia/commons/thumb/8/8e/Nextjs-logo.svg/800px-Nextjs-logo.svg.png) -->
109+
97110
- [Postgres](https://www.postgresql.org/)
98111
- <img src="https://upload.wikimedia.org/wikipedia/commons/2/29/Postgresql_elephant.svg" width="150" title="postgres db logo">
99112
@@ -102,15 +115,15 @@ npm run dev
102115
- [Vercel](https://vercel.com/) .
103116
- <img src="https://assets.vercel.com/image/upload/q_auto/front/zeit/og.png" width="150" title="vercel logo">
104117
- [Heroku](https://heroku.com/) .
105-
- <img src="https://brand.heroku.com/static/media/heroku-logotype-horizontal.81c49462.svg" width="150" title="heroku logo">
118+
- <img src="https://brand.heroku.com/static/media/heroku-logotype-horizontal.81c49462.svg" width="150" title="heroku logo"> -->
106119

107120
<!-- todo
108121
109122
v 0.2.0
110123
111124
add react toast ✅
112125
113-
add sweet altert
126+
add sweet alert
114127
115128
add delete links function ✅
116129

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Linkin",
33
"repository": "https://github.com/RizkyRajitha/linkin",
4-
"description": "Linkin is a customizable self hosted link in the bio platform",
4+
"description": "Linkin is a customizable self hosted link tree platform",
55
"logo": "https://res.cloudinary.com/dijjqfsto/image/upload/v1621666671/linkin_logo_1_jcuvr3.png",
66
"keywords": [
77
"next",

components/linkinthebiopage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useEffect } from "react";
22
import { isEmptry } from "../lib/side";
3+
// import Image from "next/image";
34

45
export default function Home({
56
handlerText,
@@ -47,7 +48,7 @@ export default function Home({
4748
<div className="outterwrap">
4849
<div className="wrap">
4950
<div className="profile">
50-
<img src={avatarUrl} className="photo" />
51+
{/* <img src={avatarUrl} className="photo" /> */}
5152
<a className="handlerLink" href={`${handlerLink}`} target="_blank">
5253
<span className="handlerText">{handlerText}</span>
5354
</a>

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.2.0",
44
"private": true,
55
"license": "MIT",
6-
"description": "Linkin is a customizable self hosted link in the bio platform",
6+
"description": "Linkin is a customizable self hosted link tree platform",
77
"logo": "https://res.cloudinary.com/dijjqfsto/image/upload/v1621666671/linkin_logo_1_jcuvr3.png",
88
"repository": {
99
"type": "git",

pages/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ export default function Home({ pageData, linkData }) {
1818
return (
1919
<>
2020
<Head>
21-
<title> {`${pageData.handlerText}'s Link In The Bio Page`}</title>
21+
<title> {`${pageData.handlerText}'s Link tree Page`}</title>
2222
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
2323
<meta
2424
name="og:description"
25-
content={`${pageData.handlerText}'s Link In The Bio Page`}
25+
content={`${pageData.handlerText}'s Link tree Page`}
2626
/>
2727
<meta name="og:site_name" content={pageData.handlerText} />
2828
<meta
2929
name="og:title"
30-
content={`${pageData.handlerText}'s Link In The Bio Page`}
30+
content={`${pageData.handlerText}'s Link tree Page`}
3131
/>
3232
<meta name="og:image" content={pageData.avatarUrl} />
3333
</Head>

0 commit comments

Comments
 (0)