Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Mar 8, 2023
0 parents commit 6018a1b
Show file tree
Hide file tree
Showing 25 changed files with 17,235 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*]
insert_final_newline=true
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# See https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
common/search/src/test/resources/**/*.json linguist-generated=true
1 change: 1 addition & 0 deletions .gitbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
root: ./docs/
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# NPM / Yarn
yarn-error.log*
npm-debug.log
node_modules/
.DS_Store
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.md
.yml
.yaml
.json

.bloop
.bsp
target
.idea
.releases
5 changes: 5 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# To ensure only properly audited changes are run in CI, we require reviews
# from @wellcomecollection/buildkite-admin when updating pipeline config

/.buildkite/ @wellcomecollection/buildkite-admin
/builds/ @wellcomecollection/buildkite-admin
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Wellcome Trust

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:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# content-api

// TODO

## Overview
// TODO


## Usage

// TODO


## Development

// TODO

## License

MIT.
21 changes: 21 additions & 0 deletions config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { URL } from "url";
import { z } from "zod";

const environmentSchema = z.object({
PUBLIC_ROOT_URL: z
.string()
.url()
.default("https://api.wellcomecollection.org/content/v0"),
});
const environment = environmentSchema.parse(process.env);

const config = {
// TODO
pipelineDate: "",
contentsIndex: "",
publicRootUrl: new URL(environment.PUBLIC_ROOT_URL),
};

export type Config = typeof config;

export const getConfig = () => config;
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
};
Loading

0 comments on commit 6018a1b

Please sign in to comment.