Coder Social home page Coder Social logo

bigcommerce-scripts's Introduction

BigCommerce Analytic Tag App

Requirement

  • Ruby 2.7.1
  • Rails 6.0.3
  • Postgresql
  • Node.js
  • React

Software

Install Dependencies (First time only)

  • Install ruby v2.7.1 using: rvm install 2.5.1 (Ruby version missed only)
  • Install rails dependencies: bundle install
  • Install node dep: yarn

Issues while installation:

  • Error: An error occurred while installing pg (0.21.0), and Bundler cannot continue.
  • Solution: Install using: gem install pg -v '0.21.0' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/12/bin/pg_config

Database creation & initialization

  • rake db:create
  • rake db:migrate

ENV variables

We need to set NGROK_FORWARDED_URL before starting Rails Server

  • Create file config/application.yml
APP_NAME: "BigCommerce App"
BC_CLIENT_SECRET: "SECRET"
BC_CLIENT_ID: ‘BC_CLIENT_ID’
APP_URL: "NGROK_FORWARDED_URL"

Development Instructions

  • Install Foreman one time only - gem install foreman
  • Open Postgres App, Redis App
  • Open a new tab and run ngrok: ngrok http 3000
  • Edit APP_URL in config/application.yml value to forwarded ngrok url
  • Config forwarded ngrok url in BigCommerce app dashboard.
  • Open forwarded ngrok url and login a development store

bigcommerce-scripts's People

Contributors

va-software-engineer avatar becomevocal avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.