Giter Club home page Giter Club logo

renttherunway's Introduction

React Storefront Boilerplate

For detailed documentation, see the React Storefront Docs.

Setup

First, install the dependencies:

npm install

Running

npm start

This builds and starts your application on https://localhost:8080. Once the build is complete, your browser will automatically open and display the application.

Windows

To run this project on Windows:

yarn start:windows

Creating a new Project

Clone the repo into a directory

git clone [email protected]:moovweb/react-storefront-boilerplate.git <project-name>
cd <project-name>

Local Config

Update the host_map in moov_config-local.json to use the customer's domain name. Replace domain.com in the code below with the customer's actual domain name. The customer will need to create a DNS entry for the "dev-origin" subdomain.

"host_map": [
  "domain.com => dev-origin.domain.com"
]

Development Server Config

Update the host map in moov_config-dev.json. Here we typically use dev.domain.com. Make sure that the subdomain you use is not already in use by the customer.

"host_map": [
  "pwa-dev.domain.com => dev-origin.domain.com"
]

Production Server Config

Update the host map in moov_config-prod.json. The customer will need to create a DNS entry for the origin subdomain.

"host_map": [
  "domain.com => origin.domain.com"
]

Package.json

Edit the name in package.json. Use <customer>-pwa.

Moovweb Console

Create the development environment in the Moovweb Console:

  1. Click "Create New Project"
  2. Enter a name and select "Single Domain". We suggest <customer>-pwa-dev
  3. Select "Project Settings"
  4. Select "Internal Config"
  5. Set "Service Level" to "Enterprise Production"

GitHub

Create a new repo in Moovweb Projects and copy the SSH url. We suggest naming the repo <customer>-pwa.

In the repo settings, under "Collaborators and Teams" add "Engineering Team" and grant write access.

In the root of your local clone, run the following to re-initialize the git repo and push it up to GitHub:

rm -rf .git
git init
git add .
git commit -am "initial commit"
git remote add origin (paste SSH git url from repo)
git push -u origin master

Circle CI

Open .circleci/config.yml. Search for "moov deploy" and update the command to use the correct environment name:

moov deploy <customer>/<customer>-pwa-dev

Commit and push to origin

The configure the project in Circle CI - Moovweb Projects:

  1. Click "Add Projects"
  2. Find your repo and click "Set Up Project"
  3. Edit the project settings and select "Environment Variables".
  4. Add your moov console credentials as MOOV_EMAIL and MOOV_PASSWORD.
  5. Select "Overview", then "Start Building" at the bottom.

Lastly, start a build and ensure that it succeeds.

renttherunway's People

Contributors

markbrocato 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.