Skip to content

Commit 05f2610

Browse files
authored
Merge branch 'master' into omitDeleted
2 parents 95a451a + 09a4ba2 commit 05f2610

File tree

208 files changed

+14364
-8307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+14364
-8307
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,3 @@ dev/
7070
# vscode settings
7171
.vscode
7272
.DS_Store
73-
74-
.nvmrc

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v14.18.1

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- "lts/*"
3+
- 14
44

55
services:
66
- docker
@@ -9,13 +9,14 @@ before_install:
99
- echo "$DOCKERHUB_TOKEN" | docker login -u "icdevops" --password-stdin;
1010

1111
script:
12-
# Audit npm packages. Fail build whan a PR audit fails, otherwise report the vulnerability and proceed.
13-
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then npx audit-ci --low -a node-fetch; else npx audit-ci --low -a node-fetch || true; fi
12+
# Audit npm packages. Fail build whan a PR audit fails, otherwise report the vulnerability and proceed. See audit-ci for details of allowlisted packages etc.
13+
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then npx audit-ci --config ./audit-ci.json; else npx audit-ci --config ./audit-ci.json || true; fi
1414
- npm run lint
1515
- npm test
1616
- npm run test:apollo:default
1717
- npm run test:apollo:local
1818
- npm run test:apollo:passport.local
19+
- npm run test:apollo:extauthtest
1920
- export BUILD_TIME=`date '+%Y-%m-%d %H:%M:%S'`
2021
- docker build --rm --build-arg BUILD_TIME="$BUILD_TIME" --build-arg BUILD_ID="${TRAVIS_BUILD_NUMBER}-${TRAVIS_COMMIT}" -t "quay.io/razee/razeedash-api:${TRAVIS_COMMIT}" .
2122
- if [ -n "${TRAVIS_TAG}" ]; then docker tag quay.io/razee/razeedash-api:${TRAVIS_COMMIT} quay.io/razee/razeedash-api:${TRAVIS_TAG}; fi

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
FROM node:12-alpine as buildImg
2020

2121
RUN apk update
22-
RUN apk --no-cache add python make g++
22+
RUN apk --no-cache add python2 make g++
2323

2424
USER node
2525
WORKDIR /home/node

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,22 @@ brew install gettext
7373
brew link --force gettext
7474
```
7575

76+
## Run locally for development
77+
78+
To run Razeedash-api locally, Redis and MongoDB can be easily run in containers:
79+
80+
- Podman (recommended): See [./local-dev/podman/README.md](./local-dev/podman/README.md)
81+
- Docker / Docker Compose: See [./local-dev/compose/README.md](./local-dev/compose/README.md)
82+
83+
Once Redis and MongoDB are running, execute:
84+
85+
```bash
86+
export MONGO_URL=mongodb://meteor:secret@localhost:27117/meteor
87+
export AUTH_MODEL=local
88+
npm install
89+
npm start
90+
```
91+
7692
## Install on Kubernetes
7793

7894
Setup so you can use `kubectl` commands on the target cluster. For IBM Cloud

0 commit comments

Comments
 (0)