README
This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
- Dependencies
- Ruby 2.6.5
- postgresql 14.8
- How to setup
- Clone the repository: Begin by cloning the repository to your local machine using Git.
- Start PostgreSQL: Start the PostgreSQL database server by running the pg_ctl start command in your terminal.
- Install dependencies: Install the required dependencies for the application by running the bundle install command in your terminal. This will install any missing gems that are required by the application.
- Run database migrations: Initialize the database by running the rails db:migrate command in your terminal. This will create the necessary database tables and schema for the application.
- Edit .env file: Edit the .env file to make sure you have all necessary variables. The file should contain the following variables:
HOST=https://test_host.app SHOPIFY_API_KEY=your_api_key SHOPIFY_API_SECRET=your_api_secret DB_USERNAME= DB_PASSWORD=
- start the service: Start the service by running bundle exec rails.
- Use ngrok:
- Use ngrok to get a public HTTPS for the local server by running
./ngrok http 3000
- Copy the url generatined in step 1 and past it as the
HOST
in.env
file - Update the
App URL
andAllowed redirection URL(s)
in your Shopify app settings.
- Use ngrok to get a public HTTPS for the local server by running
- start the service: Start the service by running
bundle exec rails s
.
Now you're ready to use the application.