BakedMaps is a clone of WeedMaps, utilizing the technologies found on weedmaps' page.
- To begin using BakedMaps anybody will be able to find bakeries in a designated area, and see what they have to offer.
- Bakeries (dispensaries) and their menus are updated daily. and represent real information.
- If a user finds a bakery they like, they can review or follow it. But they must sign up first.
- Splash Page with carousels
- carousels destroy children out of view:
componentDidUpdate(prevProps) { if (prevProps.rendered && !this.props.rendered){ setTimeout(() => { this.setState({ shouldRender: false }) }, 300) } if (!prevProps.rendered && this.props.rendered){ this.setState({ shouldRender: true }) } } - Bakery Map with custom markers
- Bakery Show Page
- User Show Page
- Sign up with Demo/Email
- Create Reviews
- dynamically filled circle svg indicating how well a dispensary is reviewed.
const ReviewCircle = ({strokeOffset}) => { return ( <svg role="img" width="140px" height="140px" viewBox="0 0 33.6 33.6" > <title>Circular loading indicator and reviews graph</title> <circle cx="16.9" cy="16.9" r="15.91549430918954" fill="transparent" stroke="#E6E6E6" strokeWidth="1.4"> </circle> <circle offset="11" className="path" data-testid="review-circle-svg" cx="16.9" cy="16.9" r="15.91549430918954" fill="transparent" stroke="#F9AE19" strokeWidth="1.4" strokeDasharray="100" transform="rotate(-90, 16.9, 16.9)" style={{ strokeDashoffset: strokeOffset, transition: "stroke-dashoffset 1.5s linear 0s" }} > </circle> </svg> ); };
- Create Follows
-
Schedule
-
9am - 10pm
-
Stand-Up
-
10am
-
Check-In Protocol
- Previous work
- Future work
- MenuItem show page
- Favorites slice
- Posts slice
- User settings page
- get svg map images for carousels
- Deals slice
- News Slice
- Brands Slice
- Change from Showing Dispensary information to Bakery Information.
-
Ruby version
- ruby 2.5.1
- rails 5.2.4.1
-
System dependencies
- node >= 10
-
Configuration
- General
- Add master.key to config folder
- Development
- bundle install
- yarn install
- Production
- create user on linux system
- RAILS_ENV=production bundle install --deployment --without development test
- RAILS_ENV=production bundle exec rails assets:precompile
- create PassengerFile.json with ``` { port:80, demonize: true, envvars: { DB_PASSWORD: 'XXXX...' }, user: linux-username
- General
-
Database creation
- Development
- rails db:create
- rails db:migrate
- Production
- create ROLE and database
- ROLE HAS to be the same as linux-username
- ROLE should have password, which is given to PassengerFile.json
- ROLE should have all permissions for given database
- configure database.yml to have new DB username
- create ROLE and database
- Development
-
Deployment instructions
ssh adminuser@yourserver.comsudo adduser myappusersudo mkdir -p /var/www/myappsudo chown myappuser: /var/www/myappcd /var/www/myappsudo -u myappuser -H git clone git://github.com/username/myapp.git codesudo -u myappuser -H bash -lrvm use ruby-2.5.1cd /var/www/myapp/codebundle install --deployment --without development testnano config/database.yml- edit with given info above
bundle exec rake secret- add given secret to master.key for SECRET_KEY_BASE
chmod 700 config dbchmod 600 config/database.ymlbundle exec rake assets:precompile db:migrate RAILS_ENV=productioncd /var/www/myapp/codenano Passengerfile.json- Give info above.
exitcd /var/www/myapp/codervmsudo bundle exec passenger start


