Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/ui/202/react setup prototype #6

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
starter project base files
  • Loading branch information
andrewnash committed Oct 13, 2019
commit a8276acf1aaa4864de25a9642a52bbed5435f6f3
16 changes: 16 additions & 0 deletions OnLand/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"presets": [
["env", {
"targets": {
"browsers": "last 2 versions"
},
"loose": true,
"modules": false
}],
"react",
"react-hmre"
],
"plugins": [
"babel-plugin-transform-class-properties"
]
}
3 changes: 3 additions & 0 deletions OnLand/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.vscode/
node_modules/
dist/
5 changes: 5 additions & 0 deletions OnLand/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- 6
- 7
- 8
68 changes: 68 additions & 0 deletions OnLand/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# React Webpack Starter
[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
[![GitHub version](https://badge.fury.io/gh/temilaj%2Freact-webpack-starter.svg)](https://badge.fury.io/gh/temilaj%2Freact-webpack-starter)

A boiler plate for creating react applications bundled by webpack (using ES6+, Babel, SASS and webpack development server)

## Features
+ ES6 and greater => ES5 code transpiling (with Babel)
+ Styling with SASS
+ File bundling with webpack
+ local development with the webpack development server

## Requirements
To run this project, you’ll need to install [node 5 and above](https://nodejs.org/en/). The latest version of Node.js is recommended.

The dependencies of this project are managed with yarn (see installation guide [here](https://yarnpkg.com/en/)). However you can simply use the node package manager, npm for your dependency management.

## Setting up
+ Clone this project to any folder on your local machine
```bash
git clone https://github.com/temilaj/react-webpack-starter.git <FOLDER_NAME_HERE>
```
+ Navigate into the folder name specified
```bash
cd <FOLDER_NAME_HERE>
```

## Installing Packages
+ For those who love yarn
```bash
yarn install
```

+ For those who love NPM
```bash
npm install
```

## Runnning the bundle

```bash
yarn build
```

or

```bash
npm run build
```
## Running the app in Development

Run `npm start` to intialize and run the webpack development server. Navigate to [http://localhost:3000/](http://localhost:3000). The app will automatically reload if you change any of the source files.

## Running the app in Production

To run the app in production build of the app, use either of the following.

```bash
yarn start
```
or
```bash
npm start
```

## LICENSE

#### [MIT](./LICENSE) © [Temi Lajumoke](http://temilajumoke.com)
16 changes: 16 additions & 0 deletions OnLand/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">

<head>
<title>React Webpack starter</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/dist/bundle.css">
</head>

<body>
<div id="root"></div>
<script src="/dist/bundle.js"></script>
</body>

</html>
Loading