A social network developed for developers.It is a platform which intends to be the best junction for all developers mostly of Nepal to meet at a place and discuss,share ideas and collaborate with each other.The social network features include following,story telling,reputation system,real time private messaging,questions and answers by using the forum and many more.
Please follow this accordingly in your development environment to setup the system.
Here are the software requirements in the development environment:-
- Ruby-2.4.0p0
- Rails 5.0.2
- Mysql
- Redis [ for future use ]
Here is what the database.yml file looks like:-
default: &default
adapter: mysql2
encoding: utf8
pool: 5
username: socialnetwork
password: socialnetwork
host: localhost
development:
<<: *default
database: socialnetwork_development
test:
<<: *default
database: socialnetwork_test
rails db:create
create a user socialnetwork for the database socialnetwork_development:-
grant all privileges on socialnetwork_development.* to 'socialnetwork'@'localhost' identified by 'socialnetwork';
and similarly for the database socialnetwork_test:-
grant all privileges on socialnetwork_test.* to 'socialnetwork'@'localhost' identified by 'socialnetwork';
mysql -u socialnetwork -p
Note the password is socialnetwork for both development and test environments.
In your console:
rails db:migrate
Just create a new branch and do your changes.Just for the note:
Always be synced up with the github master branch.None will be responsible for your merge conflicts.
To pull the master branch:
git pull origin master
After your contributions just push it or create a pull request.
Follow these and we all be together in the project.
- Recaptcha requires API key from google:
- To use recaptcha, create a file called .env in your root folder of project:
touch .env
- Insert the API keys from google in the .env file:
RECAPTCHA_SITE_KEY=<recaptcha_site_key_from_google> RECAPTCHA_SECRET_KEY=<recaptcha_secrete_key_from_google>