πŸš€ DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more β†’
Socket
Book a DemoInstallSign in
Socket

@edx/frontend-create-react-app

Package Overview
Dependencies
Maintainers
11
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edx/frontend-create-react-app

A CLI to generate a React application for edX.

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
11
Created
Source

build-status npm-version npm-total-downloads

πŸͺ πŸͺ πŸͺ

Introduction

frontend-create-react-app simplifies the creation of new frontend applications at edX by providing a CLI to generate a new instance of the edX frontend cookie cutter.

Installation

npm install @edx/frontend-create-react-app --global

Usage

Execute frontend-create-react-app via the command line and then follow the configuration options.

configuration-options

The outputted starter application should look like

β”œβ”€β”€ Dockerfile
β”œβ”€β”€ LICENSE
β”œβ”€β”€ Makefile
β”œβ”€β”€ config
|  β”œβ”€β”€ webpack.common.config.js
|  β”œβ”€β”€ webpack.dev.config.js
|  └── webpack.prod.config.js
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
β”œβ”€β”€ public
|  └── index.html
└── src
   β”œβ”€β”€ App.scss
   β”œβ”€β”€ components
   |  β”œβ”€β”€ CommentDetails
   |  |  └── index.jsx
   |  β”œβ”€β”€ CommentSearch
   |  |  └── index.jsx
   |  └── ToggleablePosts
   |     β”œβ”€β”€ ToggleablePosts.test.jsx
   |     └── index.jsx
   β”œβ”€β”€ containers
   |  β”œβ”€β”€ CommentSearchPage
   |  |  └── index.jsx
   |  β”œβ”€β”€ DisclosurePage
   |  |  β”œβ”€β”€ DisclosurePage.scss
   |  |  β”œβ”€β”€ DisclosurePage.test.jsx
   |  |  └── index.jsx
   |  └── PostsPage
   |     └── index.jsx
   β”œβ”€β”€ data
   |  β”œβ”€β”€ actions
   |  |  β”œβ”€β”€ comment.js
   |  |  β”œβ”€β”€ posts.js
   |  |  └── posts.test.js
   |  β”œβ”€β”€ constants
   |  |  └── actionTypes
   |  β”œβ”€β”€ reducers
   |  |  β”œβ”€β”€ comment.js
   |  |  β”œβ”€β”€ index.js
   |  |  β”œβ”€β”€ posts.js
   |  |  └── posts.test.js
   |  └── store.js
   β”œβ”€β”€ index.jsx
   └── setupTest.js

To start the application run

make up

This will spin up the Docker container for the new web application.

You should see something like

example

on port 1991.

At this point, the new web application should mirror the edx/frontend-cookie-cutter-application.

Keywords

edx

FAQs

Package last updated on 15 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts