Skip to content

Conversation

hicks8989
Copy link
Contributor

No description provided.

hicks8989 and others added 30 commits September 15, 2022 18:19
- add `axios` to `package.json`
- create problem-extractor package
- Add `problem-extractor.test.ts` file
- Update `ProblemExtractor.problems` to be of type `LeetcodeProblem[]`
- Update `packages/problem-extractor/interfaces.ts` to remove ProblemData interface
- Add babel.config.js for jest
- Create `/v1/problems` endpoint to get all problems
- Create `src/v1/controllers/problems.ts` controller for problems
- Create `src/v1/services/problems.ts` service for problems
- Create `src/v1/routes/problems.ts` router for problems
- Add `mongoose` to project
- Create `Problems` model
- Create `src/v1/db/problems.ts` to populate problems table
…endpoint

Feature/create problems endpoint
- Add `swagger-ui-express` to `package.json`
- Create `swagger.v1.json` file
- Add `/v1/docs` route for swagger docs
- Remove url from `contact` in `swagger.json`
- Set docs to the base url
- add `winston` to `package.json`
- Create `logger.ts` file
- Update `console.log` calls to `logger.info` or `logger.error` calls
- Setup `limit` and `offset` values for API
- Add `app.set('json spaces', 2)` to get formatted JSON
- Add test to `GET /v1/problems`
- Add `supertest` to `package.json`
- Export `app` from `app.ts` and run server in `index.ts`
- Change mongoose database for tests to use `mongodb://localhost:27017/JestDB`
- Fix issue with `npm start` in `package.json`
Copy link
Contributor

@jaredaivory jaredaivory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Big Review.

@jaredaivory jaredaivory merged commit 1a9afb7 into master Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants