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
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
41
+
42
+
# Browsers Requirement
45
43
46
44
- Chrome >= 47, Chrome for Android >= 47
47
45
- Safari >= 9, iOS Safari >= 8.4
@@ -50,15 +48,17 @@ Browsers Requirement
50
48
- Opera >= 34, Opera Mini not supported
51
49
- Android Browser >= 4.4
52
50
53
-
Prerequisite
54
-
---
51
+
# Installation
52
+
53
+
## Getting started (Native install)
54
+
55
+
### Prerequisite
55
56
56
57
- Node.js 6.x or up (test up to 7.5.0)
57
58
- Database (PostgreSQL, MySQL, MariaDB, SQLite, MSSQL) use charset `utf8`
58
59
- npm (and its dependencies, especially [uWebSockets](https://github.com/uWebSockets/uWebSockets#nodejs-developers), [node-gyp](https://github.com/nodejs/node-gyp#installation))
59
60
60
-
Get started
61
-
---
61
+
### Instructions
62
62
63
63
1. Download a release and unzip or clone into a directory
64
64
2. Enter the directory and type `bin/setup`, which will install npm dependencies and create configs. The setup script is written in Bash, you would need bash as a prerequisite.
@@ -67,8 +67,22 @@ Get started
67
67
5. Build front-end bundle by `npm run build` (use `npm run dev` if you are in development)
68
68
6. Run the server as you like (node, forever, pm2)
69
69
70
-
Upgrade guide
71
-
---
70
+
## Heroku Deployment
71
+
72
+
You can quickly setup a sample heroku hackmd application by clicking the button below.
| s3 |`{ "accessKeyId": "YOUR_S3_ACCESS_KEY_ID", "secretAccessKey": "YOUR_S3_ACCESS_KEY", "region": "YOUR_S3_REGION" }`| When `imageUploadType` be set to `s3`, you would also need to setup this key, check our [S3 Image Upload Guide](docs/guides/s3-image-upload.md)|
206
213
| s3bucket |`YOUR_S3_BUCKET_NAME`| bucket name when `imageUploadType` is set to `s3`|
207
214
208
-
Third-party integration api key settings
209
-
---
215
+
## Third-party integration api key settings
210
216
211
217
| service | settings location | description |
212
218
| ------- | --------- | ----------- |
213
219
| facebook, twitter, github, gitlab, dropbox, google, ldap | environment variables or `config.json`| for signin |
214
220
| imgur | environment variables or `config.json`| for image upload |
215
221
| google drive(`google/apiKey`, `google/clientID`), dropbox(`dropbox/appKey`) |`config.json`| for export and import |
0 commit comments