This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIT License | |
# | |
# Copyright (c) 2025 Eidan J. Rosado | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Automatically creates a new tag, GitHub release, and PyPi release if poetry version doesn't match last release version | |
name: Release | |
on: | |
workflow_dispatch: | |
branches: | |
- main | |
push: | |
branches: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
mongo: | |
image: mongo | |
restart: always | |
ports: | |
- 27017:27017 | |
bookapi: | |
image: bookapi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type":"node", | |
"request":"launch", | |
"name":"Serverless Offline Debug", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-undef */ | |
/* eslint-disable no-unused-vars */ | |
const expect = require('chai').expect; | |
const sinon = require('sinon'); | |
let drugSearchCtrl = require('../../functions/drugSearch/drugSearchCtrl'); | |
let nlmSearch = require('../../functions/drugSearch/services/nlmSearch'); | |
describe('drugSearchCtrl getDrugIdentifiers', function drugSearchCtrlTest() { | |
// NLM Drug Search Service Spy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--timeout 5000 | |
--reporter list | |
--ui bdd | |
--exit | |
test/bootstrap.test.js | |
test/**/*.test.js | |
test/**/**/*.test.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-undef */ | |
const { spawn } = require('child_process'); | |
const slsOfflineTestConfig = require('./support/slsOfflineTestConfig'); | |
let slsOfflineProcess; | |
before(function(done) { | |
// increase mocha timeout for this hook to allow sls offline to start | |
this.timeout(30000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.getSlsOfflinePort = () => { | |
return process.env.PORT || '3005'; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
"extends": ['eslint:recommended'], // extending recommended config and config derived from eslint-config-prettier | |
"plugins": ['prettier'], // activating esling-plugin-prettier (--fix stuff) | |
"rules": { | |
'prettier/prettier': [ // customizing prettier rules (unfortunately not many of them are customizable) | |
'error', | |
{ | |
"singleQuote": true, | |
"trailingComma": 'none', | |
"useTabs": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: node_js | |
node_js: | |
- "10" | |
cache: | |
directories: | |
- node_modules | |
install: | |
- npm install -g serverless |
NewerOlder