Ruby on Rails Web application for setting up meetings. You can join to already existing events or create your own.
- Ruby version: 2.7.2
- Rails versin: 6.1.3
- Webpacker 5
- Bootstrap 5
- All photos and images uploads to AWS cloud storage (with
carrierwave
,rmagick
andfog-aws
gems) - PostgreSQL (for production)
- Digital Ocean vps (using
capistrano
gem andcapistrano
associated gems for deployment) - Redis on vps
- Currently the app has only russian language
- Clone the repo.
- Execute
$ bundle install
- Execute
$ rails db:migrate
- Install
ImageMagick
if you have not one: execute
$ sudo apt-get install libmagickwand-dev imagemagick
- Add your Mailjet parameters to
.env
file:MAILJET_API_KEY
,MAILJET_SECRET_KEY
andMAILJET_SENDER
- Create your own Google maps API key and add
GOOGLE_MAPS_API_KEY
parameter with its value to.env
file. - For uploading images (photos, avatars) make sure that you have your own AWS account. Create an Amazon S3 bucket for the app and add name of this bucket to
S3_BUCKET_NAME
. Use access key ID and secret access key of your IAM AWS account for addingS3_ACCESS_KEY
andS3_SECRET_KEY
respectively. - Using developers Facebook page create an app in
My apps
where you must specifyApp Domains
,Contact Email
,Privacy Policy URL
, than put+ Add Platform
and chooseWeb
where include your own website (you should have your own website or create another free analogues, on Heroku for example) atSite URL
. Create 1 app for development environment and 1 app for production environment, than useApp ID
s forFB_APP_ID_DEV
andFB_APP_ID_PROD
,App Secret
forFB_APP_SECRET_DEV
andFB_APP_SECRET_PROD
respectively. - Using developers VKontakte page specify
Website address
,Base domain
andFirst API request
. Create 1 app for development environment and 1 app for production environment, than useApp ID
s forVK_APP_ID_DEV
andVK_APP_ID_PROD
,Secure key
forVK_APP_SECRET_DEV
andVK_APP_SECRET_PROD
respectively. - The app use RSpec test, so add your Facebook email, id, name and avatar link to
MY_FB_EMAIL
,MY_FB_ID
,MY_FB_NAME
andMY_FB_IMAGE
respectively. For digging these parameters go touser.rb
, addbyebug
to the 1 line ofself.find_for_provider_oauth(access_token)
method, execute
$ rails s
and
$ bin/webpack-dev-server
(in separate terminal windows), navigate to http://localhost:3000/users/sign_in
in your browser, put on Вход через аккаунт Facebook
, put access_token
(in terminal window where rails s
has been executed) and than find your parameters.
11. If you want to make deployment to your vps (Digital Ocean for example), make sure you have configured the vps with Ruby, Ruby on Rails, PostgreSQL, Redis, etc. and execute
$ bundle exec cap production deploy