https://fashionnxt.herokuapp.com/
Click on the above link, and open the demo app. The Facebook login feature will not work, as a result of privacy reasons, I took down the app developers account for it. Get Facebook Login to function:
- Create Facebook developers acccount https://developers.facebook.com/
- Create a facebook login app
- Use the API key of Facebook app, in the source code. You can find the required details in the document.
- Start serving Facebook login easily
-
git clone the repository to your local machine
https://github.com/codecreators07/match-my-fashion-public-CodeCreators
-
Once the files are downloaded, follow the standard procedure of installing ruby on rails. Click here
-
It is recommended to use
rvm
overrbenv
. -
Once Ruby on Rails is installed, you have to install the dependencies available in gem file. Important to note that the dependencies and other rail commands will only work, when installed rails version and ruby version matches the versions mentioned in Gemfile.
-
To ensure same versions are installed, open Gemfile, and check ruby version. Do the following:
rvm install 2.4.1
rvm use 2.4.1
-
Install the bundler
gem install bundler
-
Bundle install to install all the dependencies in Gemfile
bundle install
-
Start the rails server
rails server
-
The local server will start on the following link
If there is any problem about pg database. Try the steps below:
-
Install postgres
brew update
brew install postgres
-
open another terminal to run PG server
postgres -D /usr/local/var/postgres
-
Open PG console (Open one more terminal to run the code below)
psql postgres
-
Create admin user (more details in /config/database.yml)
create user beaverthing;
create password beaverthing;
type in password(ubuntu) twice
-
Create database follow the previous team’s setting
create database workspace_development;
create database workspace_test;
create database workspace_production;
PG console setting completed. You can close the console here.
-
Generate table with database
bin/rails db:migrate RAILS_ENV=development
-
Start the rails server
rails server
-
The local server will start on the following link
If you wish to use the S3 image backend (allowing images to be saved for more than 2 days), you will need to create an S3 bucket(AWS_BUCKET). You will then need to set AWS_BUCKET, AWS_SECRET_KEY , AWS_ACCESS_KEY and AWS_REGION so that Rails can find that bucket. For local environments:
AWS_SECRET_KEY=x AWS_ACCESS_KEY=y rails server
where x
and y
are replaced by your account details from Amazon Web Services
For deployed Heroku environments: (assuming the site is already deployed)
heroku config:set AWS_SECRET_KEY=x
and then heroku config:set AWS_ACCESS_KEY=y
For searching by location, a Google Geocoding API key will be required. This must be set as an environment variable (see Using AWS S3... above) with the name "GOOGLE_KEY".
Once this key is set, it is necessary to run "rake geocode:all CLASS=GeneralInfo" to populate the gecoded fields. For Heroku environments, prepend the previous command with "heroku run".
- Home page
- Login/Signup, Search
- My Profile
- Admin user has been added, with privilege for using the admin APIs. This is only available to the single admin user, added by the developer. Contact admin for help
- Click on sign up and create your profile in 3 quick steps.
- Once your profile is created, you will be shown logged in to the account
- Click on my profile page, to see your profile information.
- If you want to edit your profile, you can click on the three main links available on edit profile page
- If you want to search other users, you click on search button on top of the page.
- Personal information like phone number, email id is displayed on everyone's profile page to connect with others.
Contains- Matches any data which contains the searched word
- Starts With- Matches any data which starts with the searched word
- Ends With- Matches any data which ends with the searched word
- Exactly Matches- Matches any data that exactly matches the searched word
- Improved search criteria: Added email id in the search criteria. Email id is also regular expression based
- You can always choose to keep the default value of contains in the regular expression-based search, which guarantees the best possible results without any hassle of choosing a regular expression.
- You can keep all the search fields blank for the search, and in that case, the page displays all the possible search results. Simply put, all the fields in the search are totally optional and any combination of search parameters can be utilized to improve the search results.
- States and Country available in Search Page
- Earlier search parameters didn’t include the country and didn’t make states available for user. Now I have included the country parameter in the search form, and included the states as a select option in the drop-down list. Now the search will support country-based search as well.