Skip to content

Commit

Permalink
Updating polkadot api version (#7)
Browse files Browse the repository at this point in the history
* change skipped test (#2)

* fixes

* fix documentation

* fix images folder

Co-authored-by: Fernando Sirni <fsirni@gmail.com>

* [Snyk] Security upgrade node from 16.15-alpine to 16.16.0-alpine (#4)

fix: Dockerfile to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946427
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946428
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946723
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946727
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946729

* [Snyk] Security upgrade node from 16.15-alpine to 16.16.0-alpine (#3)

fix: dev.Dockerfile to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946427
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946428
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946723
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946727
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946729

* Update docs (#5)

* Update docs

* Update spanish docs

* Update CHANGELOG.md

* Review/env fix (#6)

* README.md fix

* env.sample fix

* updating polkadot api

* adding timestamp

Co-authored-by: José <jarcodallo@gmail.com>
Co-authored-by: Ruben Gutierrez <45153592+RubenGutierrezC@users.noreply.github.com>
Co-authored-by: Snyk bot <github+bot@snyk.io>
  • Loading branch information
4 people committed Oct 10, 2022
1 parent 144a25d commit 3375e6a
Show file tree
Hide file tree
Showing 31 changed files with 888 additions and 670 deletions.
4 changes: 2 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NODE_ENV=development
PORT=8080
NODE_ENV=production
PORT=5000
LOG_NAME=ink-substrate-explorer-api
LOG_LEVEL=debug

Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ name: Pulll Request App Build

# Controls when the action will run.
on:
# Triggers the workflow pull request events but only for the main and develop branch
# Triggers the workflow pull request events
pull_request:
branches: [main, develop, staging]
branches: ['**']
# Triggers the workflow push events but only for the main
push:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -59,4 +62,9 @@ jobs:
# run: pnpm test:e2e

- name: Build source code.
run: pnpm build
run: pnpm build

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Binary file added .images/graphql_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/pg_admin_connection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/pg_admin_select_server.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/pg_admin_server_name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/pg_admin_up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

## 1.0.0
Published by **[blockcoders](https://github.com/blockcoders)** on **2022/09/28**
- [#5](https://github.com/blockcoders/ink-substrate-explorer-api/pull/5) Update docs
- [#4](https://github.com/blockcoders/ink-substrate-explorer-api/pull/4) [Snyk] Security upgrade node from 16.15-alpine to 16.16.0-alpine
- [#3](https://github.com/blockcoders/ink-substrate-explorer-api/pull/3) [Snyk] Security upgrade node from 16.15-alpine to 16.16.0-alpine
- [#2](https://github.com/blockcoders/ink-substrate-explorer-api/pull/2) Change skipped test
- [#1](https://github.com/blockcoders/ink-substrate-explorer-api/pull/1) Milestone 1 Ink Explorer API
31 changes: 31 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Contributing

1. [Fork it](https://help.github.com/articles/fork-a-repo/)
2. Install dependencies (`pnpm i --frozen-lockfile`)
3. Create your feature branch (`git checkout -b my-new-feature`)
4. Commit your changes (`git commit -am 'Added some feature'`)
5. Test your changes (`pnpm test`)
6. Push to the branch (`git push origin my-new-feature`)
7. [Create new Pull Request](https://help.github.com/articles/creating-a-pull-request/)

## Testing

We use [Jest](https://github.com/facebook/jest) to write tests. Run our test suite with this command:

```
pnpm test
```

## Code Style

We use [Prettier](https://prettier.io/) and tslint to maintain code style and best practices.
Please make sure your PR adheres to the guides by running:

```
pnpm format
```

and
```
pnpm lint
```
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.15-alpine AS builder
FROM node:16.16.0-alpine AS builder

# Create app directory
WORKDIR /usr/src/app
Expand All @@ -23,7 +23,7 @@ RUN pnpm prune --prod --no-optional

# By using the FROM statement again, we are telling Docker that it should create a new,
# fresh image without any connection to the previous one.
FROM node:16.15-alpine AS build
FROM node:16.16.0-alpine AS build

# Create app directory
WORKDIR /usr/src/app
Expand Down
Loading

0 comments on commit 3375e6a

Please sign in to comment.