-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from edenia/feat/implement-new-webapp
Implement new webapp
- Loading branch information
Showing
107 changed files
with
7,154 additions
and
9,536 deletions.
There are no files selected for viewing
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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,41 @@ | ||
const plugins = [ | ||
[ | ||
'babel-plugin-import', | ||
{ | ||
libraryName: '@mui/material', | ||
libraryDirectory: '', | ||
camel2DashComponentName: false, | ||
}, | ||
'core', | ||
], | ||
[ | ||
'babel-plugin-import', | ||
{ | ||
libraryName: '@mui/icons-material', | ||
libraryDirectory: '', | ||
camel2DashComponentName: false, | ||
}, | ||
'icons', | ||
], | ||
[ | ||
'module-resolver', | ||
{ | ||
root: ['.'], | ||
extension: ['.js', '.ts', '.tsx', '.svg', '.json'], | ||
alias: { | ||
components: './src/components', | ||
context: './src/context', | ||
config: './src/config', | ||
layouts: './src/layouts', | ||
language: './src/language', | ||
utils: './src/utils', | ||
gql: './src/gql', | ||
hooks: './src/hooks', | ||
routes: './src/routes', | ||
types: './src/types', | ||
}, | ||
}, | ||
], | ||
] | ||
|
||
module.exports = { plugins } |
This file was deleted.
Oops, something went wrong.
This file contains 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,26 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
"jest": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"overrides": [], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["react", "react-hooks", "@typescript-eslint", "prettier"], | ||
"rules": {}, | ||
"settings": { | ||
"import/resolver": { | ||
"typescript": {} | ||
} | ||
} | ||
} |
This file contains 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 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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"trailingComma": "none", | ||
"endOfLine": "auto", | ||
"semi": false, | ||
"tabWidth": 2, | ||
"printWidth": 100, | ||
"singleQuote": true, | ||
"semi": false, | ||
"arrowParens": "avoid" | ||
"trailingComma": "all", | ||
"jsxSingleQuote": true, | ||
"bracketSpacing": true | ||
} |
This file contains 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,115 @@ | ||
<div align="center"> | ||
<a href="https://eoscostarica.io"> | ||
<img src="https://raw.githubusercontent.com/eoscostarica/.github/master/.github/workflows/images/eos-costa-rica-logo.png" width="300"> | ||
</a> | ||
![](https://img.shields.io/github/license/eoscostarica/backend-boilerplate) ![](https://img.shields.io/badge/code%20style-standard-brightgreen.svg) ![](https://img.shields.io/badge/%E2%9C%93-collaborative_etiquette-brightgreen.svg) [![](https://img.shields.io/twitter/follow/eoscostarica?style=social)](https://twitter.com/EOSCostaRica) ![](https://img.shields.io/github/forks/eoscostarica/backend-boilerplate?style=social) | ||
</div> | ||
|
||
# EOSIO Frontend Boilerplate | ||
|
||
**A highly scalable skeleton with best practices, ideal for React Web App projects quick start** | ||
|
||
# Features! | ||
|
||
This boilerplate features all the latest tools and practices in the industry. | ||
|
||
- _React.js_ - **React 18**✨, React Router 6, React Context | ||
- _TypeScript_ - TypeScript is **JavaScript with syntax for types.** | ||
- _MUI_ - **Material UI v5**✨ React components for faster and easier web development | ||
- _Graphql_ - **Graphql Clients**✨ A query language for your API | ||
- _UAL hook_ - **Custom hook created by Edenia Labs**✨ A wrapper for Universal Authenticator Library (UAL Core for short) to allowing apps to easily use different auth providers (optional) | ||
- _Lint_ - ESlint find and fix problems in your JavaScript code | ||
- _Styles_ - Material-UI Theme (customizable) | ||
- _i18n_ - react-i18next is a powerful internationalization framework | ||
|
||
## Installation | ||
|
||
### Before to start | ||
|
||
Somethings you need before getting started: | ||
|
||
- [git](https://git-scm.com/) | ||
- [node.js](https://nodejs.org/es/) | ||
- [yarn](https://yarnpkg.com/) | ||
|
||
### First time | ||
|
||
Copy the `.env.example` then update the environment variables according to your needs | ||
|
||
``` | ||
cp .env.example .env | ||
``` | ||
|
||
_If you want to the boilerplate using UAL login integration, please make sure that `REACT_APP_USE_UAL` env variable is set as true._ | ||
|
||
## Development | ||
|
||
### Quick start | ||
|
||
1. Clone this repo using `git clone --depth=1 https://github.com/eoscostarica/webapp-boilerplate.git <YOUR_PROJECT_NAME>` | ||
2. Move to the appropriate directory: `cd <YOUR_PROJECT_NAME>`. | ||
3. Run `yarn` in order to install dependencies. | ||
_At this point you can run `yarn start` to see the example app at `http://localhost:3000`._ | ||
|
||
## File Structure | ||
|
||
Within the download you'll find the following directories and files: | ||
|
||
``` | ||
eoscrwebappboilerplate/ | ||
├── public | ||
│ ├── index.html | ||
│ └── manifest.json | ||
│ | ||
├── src | ||
│ ├── components | ||
│ ├── config | ||
│ ├── context | ||
│ ├── gql | ||
│ ├── hooks | ||
│ ├── language | ||
│ ├── layouts | ||
│ ├── routes | ||
│ ├── theme | ||
│ ├── types | ||
│ ├── utils | ||
│ ├── App.tsx | ||
│ ├── index.tsx | ||
│ ├── graphql.ts | ||
│ └── i18n.ts | ||
│ | ||
├── .babelrc.js | ||
├── .dockerignore | ||
├── .env.example | ||
├── .eslintrc.json | ||
├── .gitignore | ||
├── .prettierrc | ||
├── .config-overrides.js | ||
├── docker-compose.yml | ||
├── Dockerfile | ||
├── LICENSE | ||
├── nginx.conf | ||
├── package.json | ||
├── README.md | ||
└── tsconfig.json | ||
``` | ||
|
||
## Contributing | ||
|
||
Please Read EOS Costa Rica's [Open Source Contributing Guidelines](https://developers.eoscostarica.io/docs/open-source-guidelines). | ||
|
||
Please report bugs big and small by [opening an issue](https://github.com/eoscostarica/webapp-boilerplate/issues) | ||
|
||
## About EOS Costa Rica | ||
|
||
<span align="center"> | ||
|
||
<a href="https://eoscostarica.io"><img width="300" alt="image" src="https://raw.githubusercontent.com/eoscostarica/.github/master/.github/workflows/images/eos-costa-rica-logo.png"></img></a> | ||
|
||
[![Twitter](https://img.shields.io/twitter/follow/EOSCostaRica?style=for-the-badge)](https://twitter.com/EdeniaWeb3) | ||
|
||
[![Discord](https://img.shields.io/discord/946500573677625344?color=black&label=Discord&logo=discord&logoColor=white&style=for-the-badge)](https://discord.gg/YeGcF6QwhP) | ||
|
||
EOS Costa Rica is an independently-owned, self-funded, bare-metal Genesis block producer that provides stable and secure infrastructure for the EOS mainnet. We support open source software for our community while offering enterprise solutions and custom smart contract development for our clients. | ||
|
||
</span> |
This file contains 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/* config-overrides.js */ | ||
/* eslint-disable react-hooks/rules-of-hooks */ | ||
const { useBabelRc, override } = require('customize-cra') | ||
|
||
module.exports = override(useBabelRc()) |
Oops, something went wrong.