Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Finish setup for v0.0.1 release #11

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
67a9f40
finish user route
fayaz07 Apr 13, 2020
ff55e75
setup for api v1, added env config
fayaz07 Apr 16, 2020
564af78
added circle/ci sample configs, updated docs, swagger, setup file
fayaz07 Apr 16, 2020
bf0a6c4
added circle/ci sample configs, updated docs, swagger, setup file
fayaz07 Apr 16, 2020
e7e0c2c
changed base url for swagger docs
fayaz07 Apr 18, 2020
b6d0c9f
changed base url for swagger docs
fayaz07 Apr 18, 2020
3d12432
changed base url for swagger docs
fayaz07 Apr 18, 2020
5c64869
changed base url for swagger docs
fayaz07 Apr 18, 2020
41feaa1
add config.js for deploy
fayaz07 Apr 18, 2020
6ec5644
add config.js for deploy
fayaz07 Apr 18, 2020
a4358f0
pulling port from .env
fayaz07 Apr 18, 2020
890cb78
pulling port from .env
fayaz07 Apr 18, 2020
4682409
added public & pirvate key mechanism, google auth route
fayaz07 Apr 19, 2020
1dda9e8
added public & pirvate key mechanism, google auth route
fayaz07 Apr 19, 2020
8488533
broke down code into functions at complex routes
fayaz07 Apr 19, 2020
b800e1e
broke down code into functions at complex routes
fayaz07 Apr 19, 2020
6fba6e1
Merge pull request #4 from fayaz07/deploy
fayaz07 Apr 19, 2020
5f4588c
Merge pull request #4 from fayaz07/deploy
fayaz07 Apr 19, 2020
3db01eb
added refreshing token path
fayaz07 Apr 26, 2020
4d06146
added refreshing token path
fayaz07 Apr 26, 2020
a9a414e
update swagger
fayaz07 Apr 26, 2020
5cb4c0b
update swagger
fayaz07 Apr 26, 2020
2bbb160
fixed issue in token refreshing
fayaz07 Apr 26, 2020
e0e7d85
fixed issue in token refreshing
fayaz07 Apr 26, 2020
40c80fe
updated readme, added nodejs installation steps
fayaz07 Apr 26, 2020
876f220
updated readme, added nodejs installation steps
fayaz07 Apr 26, 2020
1fbebd3
Merge pull request #5 from fayaz07/deploy
fayaz07 Apr 26, 2020
5cae9fe
Merge pull request #5 from fayaz07/deploy
fayaz07 Apr 26, 2020
bfbef67
fixed header name issue for token
fayaz07 May 2, 2020
dd4624d
fixed header name issue for token
fayaz07 May 2, 2020
fb6f877
updated postman collection
fayaz07 May 2, 2020
24a86d8
updated postman collection
fayaz07 May 2, 2020
828dd8f
added proper documentation, setup token lifetime inifite days
fayaz07 May 7, 2020
05f83bb
added proper documentation, setup token lifetime inifite days
fayaz07 May 7, 2020
baf1835
Merge pull request #6 from fayaz07/deploy
fayaz07 May 7, 2020
9ba595f
Merge pull request #6 from fayaz07/deploy
fayaz07 May 7, 2020
0094dc3
Add .circleci/config.yml
fayaz07 May 7, 2020
f5e454a
added db-configuration docs for config.js
fayaz07 May 7, 2020
47c9be9
pulled changes from development branch
fayaz07 May 7, 2020
eb8cbb6
Merge pull request #7 from fayaz07/circleci-project-setup
fayaz07 May 7, 2020
b826fee
added multiple todo operation apis
fayaz07 Jun 18, 2020
fac71df
merge ci-setup for circleci
fayaz07 Jun 18, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .circleci/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: 2.1 # use CircleCI 2.1
jobs: # a collection of steps
build: # runs not using Workflows must have a `build` job as entry point
working_directory: ~/mern-starter # directory where steps will run
docker: # run the steps with Docker
- image: circleci/node:12.16.1 # ...with this image as the primary container; this is where all `steps` will run
- image: mongo:4.2.0 # and this image as the secondary service container
steps: # a collection of executable commands
- checkout # special step to check out source code to working directory
- run:
name: update-npm
command: 'sudo npm install -g npm@latest'
- restore_cache: # special step to restore the dependency cache
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: install-npm-wee
command: npm install
- save_cache: # special step to save the dependency cache
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
- run: # run tests
name: test
command: npm test
- run: # run coverage report
name: code-coverage
command: './node_modules/.bin/nyc report --reporter=text-lcov'
- store_artifacts: # special step to save test results as as artifact
# Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
path: test-results.xml
prefix: tests
- store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
path: coverage
prefix: coverage
- store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
path: test-results.xml
# See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2.1
orbs:
node: circleci/[email protected]
jobs:
build-and-test:
executor:
name: node/default
steps:
- checkout
- node/with-cache:
steps:
- run: npm install
- run: npm test
workflows:
build-and-test:
jobs:
- build-and-test
15 changes: 15 additions & 0 deletions .circleci/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2.1

orbs:
heroku: circleci/[email protected] # Use the Heroku orb in your config

workflows:
heroku_deploy:
jobs:
- build
- heroku/deploy-via-git:
requires:
- build # only run deploy-via-git job if the build job has completed
filters:
branches:
only: master # only run deploy-via-git job on master branch
9 changes: 0 additions & 9 deletions .env

This file was deleted.

23 changes: 23 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
DEFAULT_REQUEST_LIMIT=

# For mail purpose
SENDGRID_API_KEY=

SENDGRID_EMAIL=
SENDGRID_USERNAME=

NODE_ENV=

# mongodb
DB_HOST=
DB_PORT=
DB_USERNAME=
DB_PASSWORD=


# TOKEN Details
TOKEN_ISSUER=
TOKEN_AUDIENCE=
TOKEN_SUBJECT=
ACCESS_TOKEN_EXPIRES=
REFRESH_TOKEN_EXPIRES=
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
# removing node_modules
node_modules

# removing environment varibale file
.env

# removing config file
config.js

# removing keys
keys/private.pem
keys/privater.pem
keys/public.pem
keys/publicr.pem
Loading