Merge branch 'makefile' into 'master'
Add Makefile to setup things See merge request framasoft/mobilizon!27
This commit is contained in:
commit
dc97429d30
14
Makefile
Normal file
14
Makefile
Normal file
|
@ -0,0 +1,14 @@
|
|||
init:
|
||||
@bash docker/message.sh "start"
|
||||
make start
|
||||
|
||||
start: stop
|
||||
@bash docker/message.sh "starting MobiliZon with docker"
|
||||
docker-compose up -d
|
||||
@bash docker/message.sh "started"
|
||||
stop:
|
||||
@bash docker/message.sh "stopping MobiliZon"
|
||||
docker-compose down
|
||||
@bash docker/message.sh "stopped"
|
||||
|
||||
target: init
|
18
README.md
18
README.md
|
@ -3,12 +3,17 @@
|
|||
Your federated organization and mobilization platform. Gather people with a convivial, ethical, and emancipating tool.
|
||||
|
||||
## Development
|
||||
|
||||
Clone the repo, and start the project via Docker
|
||||
```bash
|
||||
git clone https://framagit.org/framasoft/mobilizon
|
||||
make
|
||||
```
|
||||
### Manual
|
||||
|
||||
#### Server
|
||||
|
||||
* Install dependencies:
|
||||
|
||||
* Elixir (and Erlang) by following the instructions at [https://elixir-lang.github.io/install.html](https://elixir-lang.github.io/install.html)
|
||||
* Fetch backend Elixir dependencies with `mix deps.get`.
|
||||
* PostgreSQL
|
||||
|
@ -43,10 +48,19 @@ once the server is running:
|
|||
automatically reloaded on change.
|
||||
|
||||
### Docker
|
||||
You need to install the latest supported [Docker](https://docs.docker.com/install/#supported-platforms) and [Docker-Compose](https://docs.docker.com/compose/install/) before using the Docker way of installing Mobilizon.
|
||||
|
||||
Just run `docker-compose up -d` to start a database container, an API container and the front-end dev container running on localhost.
|
||||
Just run :
|
||||
```bash
|
||||
make start
|
||||
```
|
||||
to start a database container, an API container and the front-end dev container running on localhost.
|
||||
|
||||
## Learn more
|
||||
|
||||
* Official website: https://joinmobilizon.org/
|
||||
* Source: https://framagit.org/framasoft/mobilizon
|
||||
* Riot/Matrix: https://riot.im/app/#/room/#Mobilizon:matrix.org
|
||||
* Mastodon: https://framapiaf.org/@mobilizon
|
||||
* Forum: https://framacolibri.org/c/mobilizon/fr-francais
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ services:
|
|||
volumes:
|
||||
- './js:/app/js'
|
||||
ports:
|
||||
- "80:8080"
|
||||
- "8888:8080"
|
||||
entrypoint: entrypoint
|
||||
|
||||
api:
|
||||
|
@ -31,6 +31,7 @@ services:
|
|||
depends_on:
|
||||
- postgres
|
||||
environment:
|
||||
MIX_ENV: dev
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_DATABASE: mobilizon_dev
|
||||
|
|
7
docker/message.sh
Normal file
7
docker/message.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
GREEN='\033[0;32m'
|
||||
NC='\033[0m' # No Color
|
||||
echo -e "${GREEN}########################${NC}"
|
||||
echo -e "${GREEN} ${1} ${NC}"
|
||||
echo -e "${GREEN}########################${NC}"
|
|
@ -2,8 +2,8 @@
|
|||
"name": "mobilizon",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"engines" : {
|
||||
"node" : ">=10.0.0"
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "vue-cli-service serve",
|
||||
|
|
Loading…
Reference in a new issue