Skip to content

Commit

Permalink
Merge pull request #62 from jhomarolo/master
Browse files Browse the repository at this point in the history
remove frontend folders and update dependencies
  • Loading branch information
jhomarolo authored Aug 2, 2021
2 parents d8790cf + 1c38340 commit 85390dd
Show file tree
Hide file tree
Showing 102 changed files with 13,415 additions and 45,980 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
jobs:
build:

defaults:
run:
working-directory: ./backend

runs-on: ubuntu-latest

strategy:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
jobs:
build:

defaults:
run:
working-directory: ./backend

runs-on: ubuntu-latest

strategy:
Expand Down
109 changes: 107 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,107 @@
.vscode/settings.json
backend/.vscode/settings.json
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"workbench.colorCustomizations": {
"editorRuler.foreground": "#4e2d38",
"activityBar.background": "#5D062E",
"titleBar.activeBackground": "#830840",
"titleBar.activeForeground": "#FFFBFD"
}
}
File renamed without changes.
70 changes: 60 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
![CI Build](https://github.com/herbsjs/todolist-on-herbs/workflows/Node.js%20CI/badge.svg) [![codecov](https://codecov.io/gh/herbsjs/todolist-on-herbs/branch/master/graph/badge.svg)](https://codecov.io/gh/herbsjs/todolist-on-herbs)

![Node.js CI](https://github.com/herbsjs/todolist-on-herbs/workflows/Node.js%20CI/badge.svg)

# What's Herbs?

Expand All @@ -11,21 +10,72 @@ See more on the website: [https://herbsjs.org/](https://herbsjs.org/)

Within this repository, you will find a front-end application, made in react consuming a back-end application, using [Herbs](https://github.com/herbsjs), the API is made in graphQL

## Using

This application consists in two parts:
# Todolist on Herbs

This is a example on how to build a backend application using [Herbs](https://github.com/herbsjs).

### Using

$ npm install
$ npm start

You should receive this message => 🚀 Server UP and Running in port: 4000

VSCode launchers (launch.json) are also available.

### Postgresql setup

1. Change `knexfile.js` and `src\infra\config\dev.json` connection info.

2. Run migration:

$ npx knex migrate:latest --env development

### Herbs Shelf

View all the use cases and its steps in just one place.

Herbs Shelf: [http://localhost:4000/herbsshelf](http://localhost:4000/herbsshelf)

Documentation dynamically generated by [herbsshelf](https://github.com/herbsjs/herbsshelf/).

### GraphQL

- Backend: Is a GraphQL API usings Herbs [repository link](./backend)
- Frontend: Is a web application using react with hooks [repository link](./frontend)
GraphQL Playground: [http://localhost:4000/graphql](http://localhost:4000/graphql)

In those links you will find how to use Herbs and build awesome API's and how to consume inside front-end applications
GraphQL dynamically generated by [herbs2gql](https://github.com/herbsjs/herbs2gql).

### Rest

Express routes dynamically generated by herbs2rest.

### Herbs REPL

View all the use cases your termnal.

$ node ./src/infra/repl

REPL dynamically generated by [Herbs REPL](https://github.com/herbsjs/herbs2repl).

### Settings

**Environment:**

`.env.{environment}` files.

Rename one of the files to just `.env`.

Default is `dev`. Also check for `HERBS_EXCEPTION` env variable.

**Config:**

Edit `/backend/infra/config/{environment}.json` files if necessary.

## How to contribute

If you would like to help contribute to this repository, please see [CONTRIBUTING](https://github.com/herbsjs/todolist-on-herbs/blob/master/.github/CONTRIBUTING.md)

---

### License

- [MIT License](https://github.com/herbsjs/todolist-on-herbs/blob/master/LICENSE)
- [MIT License](https://github.com/herbsjs/todolist-on-herbs/blob/master/LICENSE)
107 changes: 0 additions & 107 deletions backend/.gitignore

This file was deleted.

Loading

0 comments on commit 85390dd

Please sign in to comment.