- php 7.2 or higher
- MongoDb 4
- RabbitMQ 3
git clone https://github.com/julienj/twity.git
cd twity
composer install
npm install
npm run build
Edit .env
file
APP_ENV=prod
APP_SECRET=your-secret
MONGODB_URL=mongodb://localhost:27017
MONGODB_DB=symfony
MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
EMAIL_SENDER=[email protected]
MAILER_URL=smtp://localhost:25?encryption=&auth_mode=
GITLAB_DOMAINE=https://gitlab.exemple.com
GITLAB_CLIENT_ID=my-client-id
GITLAB_CLIENT_ID_SECRET=my-secret
If you choose to setup the Gitlab Oauth, when creating the twity application on your Gitlab account, you will have to
fill in the redirect uri. These uri is http(s)://YOURTWITYDOMAIN/login/gitlab
php bin/console doctrine:mongodb:schema:update
php bin/console messenger:consume-messages
Or use supervisord
Run this command every day for update provider
php /path/to/app/bin/console app:request-reload-providers
php bin/console app:create-user
Use `ROLE_ADMIN for create tou first admin user