-
Notifications
You must be signed in to change notification settings - Fork 7
Add react barebone - Issue 58 #60
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6082a92
Add initial react project
5adfa35
Add react to master.yaml
399d428
Add eslint
6309fb8
Add jest
2dca670
Add Dockerfile
2d36f95
Add react option to stack
db22e31
Add docker config
d424ffd
Update README.md
46d12a5
Update React status in README
f4f550e
Add React workflow
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ Stackbox helps you create app stacks loaded with all your favourite clients, ser | |
4. [**Debugging**](https://github.com/Stack-Box/StackBox/wiki/Debugging) | ||
|
||
# Get Started | ||
|
||
## Run | ||
|
||
### Brew installation | ||
|
@@ -38,6 +39,7 @@ Stackbox helps you create app stacks loaded with all your favourite clients, ser | |
brew tap Stack-Box/tap | ||
brew install stackbox | ||
``` | ||
|
||
**Run** | ||
|
||
``` | ||
|
@@ -64,15 +66,17 @@ Jump to [_**example-stacks**_](https://github.com/Stack-Box/StackBox/blob/master | |
| **Rails** | ✅ | ❌ | na | na | ❌ | na | ❌ | | ||
| **Vue** | ✅ | ✅ | na | na | ❌ | na | ❌ | | ||
| **Angular** | ✅ | ✅ | na | na | ❌ | na | ❌ | | ||
| **React** | ✅ | ✅ | na | na | ❌ | na | ❌ | | ||
|
||
## Example Stacks | ||
|
||
The following is a list of example stacks you could spin-up using Stackbox and quickly get-started with your development. | ||
|
||
### 1. Flask-Vue-Mysql-Elasticsearch | ||
|
||
#### Run | ||
|
||
Run from source - `sh stackbox.sh` | ||
Run from source - `sh stackbox.sh` | ||
|
||
or | ||
|
||
|
@@ -81,6 +85,7 @@ Run from Brew installation - `stackbox` | |
Choose vue for frontend, flask for backend. Choose mysql and elasticsearch (with/without kibana) for services. | ||
|
||
#### Test | ||
|
||
After the run is finished, the final log should look like the one below. | ||
|
||
``` | ||
|
@@ -90,7 +95,7 @@ elasticsearch is up at http://localhost:9200 | |
mysql is up at http://localhost:3306 | ||
``` | ||
|
||
Now you can visit http://localhost:8080 to view the Vue frontend. From there you can click on Mysql/Elasticsearch links to view the preloaded data from mysql/elasticsearch containers being rendered. | ||
Now you can visit <http://localhost:8080> to view the Vue frontend. From there you can click on Mysql/Elasticsearch links to view the preloaded data from mysql/elasticsearch containers being rendered. | ||
|
||
**Visit [Working](https://github.com/Stack-Box/StackBox/wiki/Working) or [Debugging](https://github.com/Stack-Box/StackBox/wiki/Debugging) pages to know more about internal details.** | ||
|
||
|
@@ -99,6 +104,7 @@ Now you can visit http://localhost:8080 to view the Vue frontend. From there you | |
📢 **Contributors needed!!** 📢 | ||
|
||
**Aux Services** | ||
|
||
- [ ] Dynamo | ||
- [x] S3 | ||
- [ ] Postgres | ||
|
@@ -108,15 +114,18 @@ Now you can visit http://localhost:8080 to view the Vue frontend. From there you | |
- [ ] Hadoop | ||
|
||
**Frontend clients** | ||
|
||
- [x] Angular | ||
- [ ] React | ||
- [x] React | ||
|
||
**Backend services** | ||
|
||
- [x] Rails | ||
- [ ] Django | ||
- [ ] Springboot | ||
- [ ] Golang | ||
|
||
## Help and Support | ||
|
||
<a href="https://stackboxworkspace.slack.com/" alt="Slack"> | ||
<img src="https://img.shields.io/badge/[email protected]?logo=slack" /></a> | ||
<img src="https://img.shields.io/badge/[email protected]?logo=slack" /></a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module.exports = { | ||
parser: "babel-eslint", | ||
env: { | ||
browser: true, | ||
commonjs: true, | ||
es6: true, | ||
node: true, | ||
jest: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
ecmaFeatures: { | ||
impliedStrict: true, | ||
jsx: true, | ||
}, | ||
sourceType: "module", | ||
}, | ||
plugins: ["react", "react-hooks", "jest"], | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:jest/recommended" | ||
], | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
}, | ||
rules: {}, | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM node:lts-alpine | ||
|
||
WORKDIR '/app' | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY ./ ./ | ||
|
||
CMD [ "npm", "run", "start" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
|
||
## Available Scripts | ||
|
||
In the project directory, you can run: | ||
|
||
### `npm start` | ||
|
||
Runs the app in the development mode.<br /> | ||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
The page will reload if you make edits.<br /> | ||
You will also see any lint errors in the console. | ||
|
||
### `npm test` | ||
|
||
Launches the test runner in the interactive watch mode.<br /> | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
|
||
### `npm run build` | ||
|
||
Builds the app for production to the `build` folder.<br /> | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
|
||
The build is minified and the filenames include the hashes.<br /> | ||
Your app is ready to be deployed! | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
|
||
### `npm run eject` | ||
|
||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** | ||
|
||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
|
||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. | ||
|
||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. | ||
|
||
## Learn More | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
|
||
### Code Splitting | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting | ||
|
||
### Analyzing the Bundle Size | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size | ||
|
||
### Making a Progressive Web App | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app | ||
|
||
### Advanced Configuration | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration | ||
|
||
### Deployment | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment | ||
|
||
### `npm run build` fails to minify | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.