mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Add env and database setup
This commit is contained in:
parent
8b350c7772
commit
13aad9ef8f
33
README.md
33
README.md
@ -1,4 +1,4 @@
|
|||||||
# ocelot.social
|
# Ocelot.Social
|
||||||
|
|
||||||
[](https://travis-ci.com/Human-Connection/Human-Connection)
|
[](https://travis-ci.com/Human-Connection/Human-Connection)
|
||||||
[](https://codecov.io/gh/Human-Connection/Human-Connection/)
|
[](https://codecov.io/gh/Human-Connection/Human-Connection/)
|
||||||
@ -83,21 +83,48 @@ docker-compose version 1.23.2
|
|||||||
|
|
||||||
#### Start Ocelot-Social via Docker-Compose
|
#### Start Ocelot-Social via Docker-Compose
|
||||||
|
|
||||||
|
Prepare ENVs once beforehand:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# in folder webapp/
|
||||||
|
$ cp .env.template .env
|
||||||
|
|
||||||
|
# in folder backend/
|
||||||
|
$ cp .env.template .env
|
||||||
|
```
|
||||||
|
|
||||||
For Development:
|
For Development:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# in main folder
|
||||||
$ docker-compose up
|
$ docker-compose up
|
||||||
```
|
```
|
||||||
|
|
||||||
For Production:
|
For Production:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# in main folder
|
||||||
$ docker-compose -f docker-compose.yml up
|
$ docker-compose -f docker-compose.yml up
|
||||||
```
|
```
|
||||||
|
|
||||||
This will start all required Docker containers.
|
This will start all required Docker containers.
|
||||||
|
Make sure your database is running on `http://localhost:7474/browser/`.
|
||||||
|
|
||||||
To prepare everything once frontup see [backend README.md](./backend/README.md).
|
Prepare database once beforehand:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# in folder backend/
|
||||||
|
yarn run db:migrate init
|
||||||
|
```
|
||||||
|
|
||||||
|
Then clear and seed database:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# in folder backend/
|
||||||
|
$ yarn run db:reset && db:seed
|
||||||
|
```
|
||||||
|
|
||||||
|
For a closer description see [backend README.md](./backend/README.md).
|
||||||
For a full documentation see [SUMMERY](./SUMMARY.md).
|
For a full documentation see [SUMMERY](./SUMMARY.md).
|
||||||
|
|
||||||
### Local Installation
|
### Local Installation
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user