Giter Site home page Giter Site logo

sdk-react-fullapp's Introduction

Getting Started with Integry SDK full app example

This project was bootstrapped with Create React App. The API was bootstrapped by express-generator.

Prerequisites

  1. Install the latest LTS version of NodeJS. Currently that is v14.
  2. After installing Node, open a terminal window and install the yarn package manager. You can do that by running npm install -g yarn in the terminal.
  3. Make sure you have Git installed. Try running git in a terminal. If it is not installed, MacOS will prompt you to install XCode Build Tools which will do the job for you. Otherwise, use the latest version available here.

Setup

  1. Clone the repository in a directory using the following command. Then, change directory into the project that you just cloned.
# clone app
git clone https://github.com/osamaaamer95/sdk-react-fullapp

# change to project directory
cd sdk-react-fullapp
  1. Install dependencies in the frontend and backend directories.
  • The frontend directory is the root project directory.
  • The backend directory is the /api directory.
# Install frontend dependencits
yarn install

# Install backend dependencies
cd api
yarn install
  1. Create a .env file in the /api directory and copy environment variables to it. These environment variables are the ones shown on the SDK deployment page.
# Move to API directory if not already there
cd api

# Copy the env sample file
cp .env.sample .env

Now, open the newly copied .env file and fill in all three of these values after you create a deployment on the Integry web app.

INTEGRY_APP_KEY=
INTEGRY_APP_SECRET=
INTEGRY_DEPLOYMENT_ID=
  1. Start the API and frontend in separate terminal instances.
# In root directory in terminal A
yarn start

# In api directory in terminal B
yarn start
  1. Open http://localhost:3000 to view the app running in the browser.

sdk-react-fullapp's People

Contributors

integryiosama avatar osamaaamer95 avatar

Watchers

 avatar  avatar

sdk-react-fullapp's Issues

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.