Skip to content

Commit

Permalink
Merge pull request #82 from IGAQ/develop
Browse files Browse the repository at this point in the history
Our First MVP
  • Loading branch information
iantelli authored Nov 20, 2022
2 parents 128d15a + 83fbf78 commit 22649da
Show file tree
Hide file tree
Showing 148 changed files with 9,606 additions and 220 deletions.
16 changes: 16 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PORT=8080

IS_DEVELOPMENT=false

NEST_DEBUG=false

# ---- Neo4j ----
NEO4J_SCHEME=bolt
NEO4J_HOST=localhost
NEO4J_PORT=7687
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=admin
NEO4J_DATABASE=

# ---- JWT ----
JWT_SECRET="costco-poutine"
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ module.exports = {
tabWidth: 4,
singleQuote: false,
semi: true,
trailingComma: "all",
trailingComma: "es5",
printWidth: 100,
arrowParens: "avoid",
endOfLine: "crlf",
},
],
},
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/eslintAndFormatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is a basic workflow to help you get started with Actions

name: Eslint formatting

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "develop" branch
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Install the packages
run: npm i

# Runs a set of commands using the runners shell
- name: Run format and lint commands
run: |
npm run format
npm run lint
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "develop" branch
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Run a one-line script
run: npm i

# Runs a set of commands using the runners shell
- name: Run a multi-line script
env:
NEO4J_SCHEME: ${{ secrets.NEO4J_SCHEME }}
NEO4J_HOST: ${{ secrets.NEO4J_HOST }}
NEO4J_PORT: ${{ secrets.NEO4J_PORT }}
NEO4J_USERNAME: ${{ secrets.NEO4J_USERNAME }}
NEO4J_PASSWORD: ${{ secrets.NEO4J_PASSWORD }}
NEO4J_DATABASE: ""
run: |
npm run build
npm run test
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
bun.lockb

# OS
.DS_Store
Expand All @@ -20,6 +21,7 @@ lerna-debug.log*

# IDEs and editors
/.idea
/.fleet
.project
.classpath
.c9/
Expand All @@ -32,4 +34,6 @@ lerna-debug.log*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/extensions.json

.env
11 changes: 7 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"singleQuote": false,
"trailingComma": "all",
"semi": true,
"tabWidth": 4
"tabWidth": 4,
"singleQuote": false,
"semi": true,
"trailingComma": "es5",
"printWidth": 100,
"arrowParens": "avoid",
"endOfLine": "crlf"
}
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<p> We made this together! </p>
<p align="center">
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a>
</p>
Expand Down Expand Up @@ -26,6 +27,11 @@

[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.

## Pre-Setup Environment

1. Make a copy of `.env.example` and rename it to `.env`
2. Change the value of the environment variables

## Installation

```bash
Expand Down Expand Up @@ -64,9 +70,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors

## Stay in touch

- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)
- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)

## License

Expand Down
Loading

0 comments on commit 22649da

Please sign in to comment.