Skip to content

Commit df84257

Browse files
author
Lala Sabathil
authored
Merge branch 'develop' into register_module
2 parents daf9443 + 7c1207d commit df84257

8 files changed

Lines changed: 191 additions & 265 deletions

File tree

README.md

Lines changed: 6 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -13,55 +13,8 @@
1313
</p>
1414

1515
# Human-Connection WebApp
16-
> uses the Nuxt.js and Express.js projects
17-
18-
> **Note:** This is only the WebApp part of Human-Connection, you have to also checkout the [API](https://github.com/Human-Connection/API) which is used by this WebApp.
19-
20-
## Local Installation
21-
22-
Run:
23-
``` bash
24-
# install dependencies
25-
$ yarn install
26-
27-
# serve with hot reload at localhost:3000
28-
$ yarn dev
29-
30-
# build once and launch server
31-
$ yarn build
32-
$ yarn start
33-
```
34-
35-
Create your individual set of environment variables:
36-
```sh
37-
$ cp .env.example .env
38-
# now open .env and change it according to your setup
39-
```
40-
41-
For detailed explanation on how things work, checkout the [Nuxt.js docs](https://github.com/nuxt/nuxt.js).
42-
43-
## Env Vars
44-
45-
> More information on environment variables can be found in the [documentation (WIP)](https://docs.human-connection.org/environments/docker-test-production/docker-configuration.html)
46-
47-
### Test Logins
48-
49-
50-
| Role | E-Mail | Password |
51-
| --------- | -------------- | -------- |
52-
| Admin | test@test.de | 1234 |
53-
| Moderator | test2@test2.de | 1234 |
54-
| User | test3@test3.de | 1234 |
55-
56-
57-
## Styleguide
58-
59-
The Developer Style Guide provides important infos about components and styles. To start it simply type:
60-
61-
``` bash
62-
$ yarn run styleguide
63-
```
64-
When built you can open it at [http://localhost:6060](http://localhost:6060)
16+
This is the frontend of HC.<br />
17+
It uses the Nuxt.js and Express.js projects.<br />
6518

6619
## Localization
6720

@@ -72,12 +25,9 @@ When built you can open it at [http://localhost:6060](http://localhost:6060)
7225
[Lokalise.co](https://lokalise.co/public/829625945b3c04bf56d560.80490143/)
7326

7427
## Help
75-
76-
The HC platform is documented in our [docs](https://docs.human-connection.org/) (work in progress).<br>
77-
Connect with other developers over [Discord](https://discord.gg/mVmjvNF).
28+
The HC platform and its setup is documented in our [docs](https://docs.human-connection.org/) (work in progress).<br />
29+
Connect with other developers over [Discord](https://discord.gg/354TGs2)<br />
7830

7931
## License
80-
81-
Copyright (c) 2018 [Human-Connection.org](https://human-connection.org)
82-
83-
Licensed under the [MIT](https://github.com/Human-Connection/WebApp/blob/develop/LICENSE.md) license.
32+
Copyright (c) 2018 [Human-Connection.org](https://human-connection.org)<br />
33+
Licensed under the [MIT](https://github.com/Human-Connection/WebApp/blob/develop/LICENSE.md) license.<br />

docker-compose.override.yml

Lines changed: 9 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,15 @@
1-
version: '3'
1+
version: '3.5'
22

33
services:
44
webapp:
5-
networks:
6-
hc-network:
7-
ipv4_address: 172.25.0.20
5+
build:
6+
context: .
7+
args:
8+
BUILD_COMMIT: ${BUILD_COMMIT}
89
environment:
910
- NODE_ENV=development
10-
- MAINTENANCE=${MAINTENANCE}
11-
- WEBAPP_HOST=172.25.0.20
12-
- WEBAPP_BASE_URL=http://172.25.0.20:3000
13-
- API_HOST=172.25.0.11
14-
- WEBAPP_PORT=3000
15-
- API_PORT=3030
16-
- MAPBOX_TOKEN=pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ
17-
- SENTRY_DNS_PUBLIC=${SENTRY_DNS_PUBLIC}
18-
- EMBED_API_URL=${EMBED_API_URL}
19-
# these secrets should only be accessible on the server:
20-
- SENTRY_DNS_PRIVATE=${SENTRY_DNS_PRIVATE}
21-
- EMBED_API_TOKEN=${EMBED_API_TOKEN}
22-
depends_on:
23-
- api
24-
mongo:
25-
image: mongo
26-
networks:
27-
- hc-network
28-
command: "--smallfiles --logpath=/dev/null"
29-
api:
30-
image: humanconnection/api-feathers
31-
depends_on:
32-
- maildev
33-
- thumbor
34-
- mongo
35-
environment:
36-
- NODE_ENV=staging
37-
ports:
38-
- "3030:3030"
39-
stdin_open: true
11+
volumes:
12+
- .:/WebApp/
13+
- /WebApp/node_modules
14+
command: yarn run dev
4015
tty: true
41-
networks:
42-
hc-network:
43-
ipv4_address: 172.25.0.11
44-
maildev:
45-
image: djfarrelly/maildev
46-
networks:
47-
- hc-network
48-
ports:
49-
- "1080:80"
50-
- "1025:25"
51-
thumbor:
52-
image: apsl/thumbor
53-
networks:
54-
- hc-network
55-
ports:
56-
- "8000:8000"
57-
58-
networks:
59-
hc-network:
60-
driver: bridge
61-
ipam:
62-
driver: default
63-
config:
64-
-
65-
subnet: 172.25.0.0/16

docker-compose.staging.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: '3.5'
2+
3+
services:
4+
webapp:
5+
environment:
6+
- NODE_ENV=development # this is just `development` so https will not be enforced
7+
- MAINTENANCE=${MAINTENANCE}
8+
- SENTRY_DNS_PUBLIC=${SENTRY_DNS_PUBLIC}
9+
- EMBED_API_URL=${EMBED_API_URL}
10+
# these secrets should only be accessible on the server:
11+
- SENTRY_DNS_PRIVATE=${SENTRY_DNS_PRIVATE}
12+
- EMBED_API_TOKEN=${EMBED_API_TOKEN}

docker-compose.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
version: '3'
1+
version: '3.5'
22

33
services:
44
webapp:
5-
image: humanconnection/frontend-nuxt
6-
build:
7-
context: .
8-
args:
9-
BUILD_COMMIT: ${BUILD_COMMIT}
10-
stdin_open: true
11-
tty: true
5+
image: humanconnection/frontend-nuxt:edge
126
ports:
13-
- 3000:3000/tcp
7+
- "3000:3000"
8+
networks:
9+
- hc-network
10+
environment:
11+
- WEBAPP_HOST=webapp
12+
- WEBAPP_BASE_URL=http://localhost:3000
13+
- API_HOST=api.127.0.0.1.xip.io
14+
- WEBAPP_PORT=3000
15+
- API_PORT=3030
16+
- MAPBOX_TOKEN=pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ
17+
18+
networks:
19+
hc-network:
20+
name: hc-network

0 commit comments

Comments
 (0)