mirror of
https://github.com/caprover/caprover
synced 2026-09-22 06:35:36 +00:00
website update
This commit is contained in:
@@ -6,9 +6,9 @@ sidebar_label: Complete Webapp Tutorial
|
||||
|
||||
|
||||
<br/>
|
||||
We want to make a webapp version of HOTDOG or NOT HOTDOG:
|
||||
We want to make a webapp version of [HOTDOG or NOT HOTDOG](https://www.theverge.com/2017/6/26/15876006/hot-dog-app-android-silicon-valley)!
|
||||
|
||||
|
||||
https://www.theverge.com/2017/6/26/15876006/hot-dog-app-android-silicon-valley
|
||||
|
||||
## App Description
|
||||
Assume we want to create a webapp that shows a list of photos with a line describing whether the image is a hotdog or not hotdog, something like this:
|
||||
@@ -65,7 +65,6 @@ In order for your web-app to work. It needs to be able to talk to MongoDB instan
|
||||
```
|
||||
mongoose.connect("mongodb://srv-captain--my-mongodb/mydatabase", { useMongoClient: true });
|
||||
```
|
||||
Of course, you can add username and password to the URI, see here for example:
|
||||
https://stackoverflow.com/questions/7486623/mongodb-password-with-in-it
|
||||
Of course, you can add username and password to the URI, see [here for example](https://stackoverflow.com/questions/7486623/mongodb-password-with-in-it).
|
||||
|
||||
This is the same for other services; if you want to upload an image to your image uploader service you can just access it via `http://srv-captain--imageuploader`
|
||||
|
||||
+2
-2
@@ -26,8 +26,8 @@ You can install Captain on your laptop which is behind NAT (your router) for tes
|
||||
|
||||
#### C) Install Docker on Server (at least, version 17.06.x)
|
||||
|
||||
If you get your server from DigitalOcean, you can select a server with "pre-installed Docker". This will be the easiest option. Otherwise, you can install Docker CE by following this instruction:
|
||||
https://docs.docker.com/engine/installation
|
||||
If you get your server from DigitalOcean, you can select a server with "pre-installed Docker". This will be the easiest option. Otherwise, you can install Docker CE by following [this instruction](https://docs.docker.com/engine/installation)
|
||||
|
||||
|
||||
|
||||
#### D) Disable Firewall
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 76 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 202 KiB |
Reference in New Issue
Block a user