2019-07-03 16:58:24 +02:00
|
|
|
# gancio
|
|
|
|
#### a shared agenda for local communities
|
2019-04-02 23:23:45 +02:00
|
|
|
|
2019-07-03 16:58:24 +02:00
|
|
|
> :warning: WARNING :warning:
|
|
|
|
> Gancio is under heavy development, if something is not working as expected, it's expected :D
|
|
|
|
Please be patient and open an [issue](/cisti/gancio/issues)!
|
2019-04-02 23:23:45 +02:00
|
|
|
|
2019-07-03 17:52:59 +02:00
|
|
|
### Current live instances:
|
2019-04-02 23:23:45 +02:00
|
|
|
|
2019-07-03 17:53:22 +02:00
|
|
|
- https://gancio.cisti.org
|
|
|
|
- https://lapunta.org
|
2019-07-03 16:33:03 +02:00
|
|
|
|
2019-07-03 16:58:24 +02:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
##### Install node
|
|
|
|
```bash
|
|
|
|
# source https://github.com/nodesource/distributions/blob/master/README.md
|
|
|
|
curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
|
|
|
apt-get install -y nodejs
|
|
|
|
```
|
|
|
|
|
|
|
|
##### Install postgres
|
|
|
|
```bash
|
|
|
|
apt install postgresql
|
|
|
|
```
|
|
|
|
##### Create database
|
|
|
|
```bash
|
|
|
|
sudo -u postgres psql
|
|
|
|
postgres=# create database gancio;
|
|
|
|
postgres=# create user gancio with encrypted password 'gancio';
|
|
|
|
postgres=# grant all privileges on database gancio to gancio;
|
|
|
|
```
|
|
|
|
##### Install gancio
|
|
|
|
```bash
|
|
|
|
npm install --global gancio
|
|
|
|
```
|
|
|
|
|
|
|
|
##### Create a new user
|
|
|
|
```bash
|
|
|
|
adduser gancio
|
|
|
|
su gancio
|
|
|
|
```
|
|
|
|
|
|
|
|
##### Setup & test
|
|
|
|
```bash
|
|
|
|
gancio --help
|
|
|
|
gancio setup
|
|
|
|
gancio start
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-06-08 13:18:47 +02:00
|
|
|
|
|
|
|
|
2019-07-03 16:58:24 +02:00
|
|
|
### Hacking
|
|
|
|
|
2019-04-02 23:23:45 +02:00
|
|
|
``` bash
|
2019-06-08 13:18:47 +02:00
|
|
|
# clone this repo
|
|
|
|
git clone https://git.lattuga.net/cisti/gancio.git
|
|
|
|
cd gancio
|
|
|
|
|
2019-04-02 23:23:45 +02:00
|
|
|
# install dependencies
|
2019-06-08 13:18:47 +02:00
|
|
|
yarn install
|
|
|
|
|
|
|
|
# testing with sqlite db
|
|
|
|
yarn dev
|
|
|
|
|
2019-04-02 23:23:45 +02:00
|
|
|
# build for production and launch server
|
2019-06-08 13:18:47 +02:00
|
|
|
yarn build
|
|
|
|
yarn start
|
2019-04-02 23:23:45 +02:00
|
|
|
|
|
|
|
```
|
2019-07-03 16:33:03 +02:00
|
|
|
|
2019-07-03 17:52:59 +02:00
|
|
|
Made with :heart: by [underscore hacklab](https://autistici.org/underscore)
|