You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+57-23Lines changed: 57 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,15 @@
4
4
5
5
# Linkin ·[](https://deepscan.io/dashboard#view=project&tid=14086&pid=17178&bid=386441)[](https://codecov.io/gh/RizkyRajitha/linkin)
6
6
7
-
## Linkin is a customizable self-hosted link tree platform.
7
+
## Linkin is a customizable self-hosted link tree application.
8
8
9
9
<br>
10
10
11
11
[Visit Demo](http://linkindemo.vercel.app/)
12
+
<br>
13
+
[Demo Admin](http://linkindemo.vercel.app/admin)
14
+
`http://linkindemo.vercel.app/admin`
15
+
<br>
12
16
13
17
- Demo username = `admin`
14
18
- Demo password = `linkin123`
@@ -18,24 +22,28 @@
18
22
19
23
## Deploy with Vercel
20
24
21
-
[](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2FRizkyRajitha%2Flinkin&env=DBURL,KEY,NODE_ENV&demo-title=Linkin&demo-description=Linkin%20is%20a%20customizable%20self%20hosted%20link%20tree%20platform%20%2C%20And%20we%20are%20ready%20to%20roll)
25
+
[](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2FRizkyRajitha%2Flinkin&env=DATABASE_URL,HASHSALT,NODE_ENV&demo-title=Linkin&demo-description=Linkin%20is%20a%20customizable%20self%20hosted%20link%20tree%application%20%2C%20And%20we%20are%20ready%20to%20roll)
[](https://railway.app/new/template?template=https%3A%2F%2Fgithub.com%2FRizkyRajitha%2Flinkin&plugins=postgresql&envs=HASHSALT%2CPORT%2CRAILWAY&HASHSALTDesc=Random+secret+HASHSALT+for+JWT+and+password+encryption&PORTDesc=Exposed+Port+in+Dockerfile&RAILWAYDesc=migrate+and+seed+the+database+in+railway+.+done+in+docker+image+build+time&PORTDefault=3000&RAILWAYDefault=1)
34
+
27
35

28
36
29
37

30
38
31
39

32
40
33
-
###Getting started
41
+
## Getting started
34
42
35
43
- Deploy in Vercel
36
44
- set environment variables
37
-
-`DBURL` - **Postgres** database url
38
-
-`KEY` - random secret key
45
+
-`DATABASE_URL` - **Postgres** database url
46
+
-`HASHSALT` - random secret key
39
47
-`NODE_ENV` - set NODE_ENV to `production`
40
48
- after successfully deploying visit `youdomain/admin` to view admin login
41
49
- use default login credentials
@@ -48,26 +56,41 @@
48
56
49
57
- Deploy in Heroku
50
58
- set environment variables
51
-
-`DBURL` - **Postgres** database url
52
-
-`KEY` - random secret key
59
+
-`DATABASE_URL` - **Postgres** database url
60
+
-`HASHSALT` - random secret key
53
61
- after successfully deploying visit `youdomain/admin` to view admin login
54
62
- use default login credentials
55
63
- username = `admin`
56
64
- password = `linkin123`
57
65
- after a successfull login you will be able to see above admin dashboard.
66
+
<br>
67
+
68
+
<br>
58
69
<br>
59
70
60
-
### Running with docker
71
+
- Deploy in Railway
72
+
- set environment variables
73
+
-`HASHSALT` - random secret key
74
+
-`PORT` - 3000
75
+
-`RAILWAY` - Set to `1` to run migrations and seeding in docker build stage . set `0` to avoid migrations and seeding in docker build stage
76
+
-`DATABASE_URL` - **Postgres** database url . use this variable **if you are not using** railway postgres plugin
77
+
- after successfully deploying visit `youdomain/admin` to view admin login
78
+
- use default login credentials
79
+
- username = `admin`
80
+
- password = `linkin123`
81
+
- after a successfull login you will be able to see above admin dashboard.
82
+
<br>
83
+
84
+
## Running with docker
61
85
62
-
- build the docker image using `docker build . -t linkin` command
63
-
- Run the docker image `docker run -d -p 3000:3000 -e DBURL='postgres://linkin:123@localhost:5432/linkin' -e KEY='123' linkin`. make sure you specified `DBURL` and `KEY` environment varaibles.
64
-
86
+
- build the docker image using `docker build . -t linkin` command
87
+
- Run the docker image `docker run -d -p 3000:3000 -e DATABASE_URL='postgres://linkin:123@localhost:5432/linkin' -e HASHSALT='123' linkin`. make sure you specified `DATABASE_URL` and `HASHSALT` environment varaibles.
65
88
66
-
###Developing locally
89
+
## Developing locally
67
90
68
91
#### Requirements
69
92
70
-
- Node.js 10.13 or newer
93
+
- Node.js 14.x or newer
71
94
- Postgresql
72
95
73
96
#### Clone and install dependencies
@@ -79,22 +102,33 @@ npm i
79
102
```
80
103
81
104
<!-- Setup local environmrnt variables in [config.js](configs/config.js) -->
82
-
Setup local environmrnt variables in [.env.local](./.env.local)
0 commit comments