Skip to content

Commit

Permalink
Merge pull request #214 from Nintails-TF/FE/filters
Browse files Browse the repository at this point in the history
Fe/filters
  • Loading branch information
AmSmef authored Feb 2, 2024
2 parents 255f682 + 87b906d commit 91f4795
Show file tree
Hide file tree
Showing 19 changed files with 155 additions and 2,354 deletions.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/pull-request-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,45 @@ about: ABOUT HERE
---

## Pull Request Overview

#### Brief Description:

Summary of changes and their purpose.

#### Issue Number:

#### Related User Story:

Link to the user story or issue this PR addresses.

## Code Changes

#### Major Changes:

Overview of major code changes and their impact.

#### Minor Changes:

List of minor changes or refactors.

## Testing

#### Test Cases Covered:

Brief description of test cases added or modified.

#### Testing Results:

Summary of test results and any bugs identified.

## Documentation

#### Updated Documentation:

Links to updated user or technical documentation.

#### Review Checklist

- [ ] Code follows project's coding standards.
- [ ] Code is commented and clean.
- [ ] Tests are comprehensive and passing.
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '19.9.0'
- name: Change to BE directory
run: cd be
- name: Install BE dependencies
run: npm install
working-directory: be
Expand All @@ -25,3 +27,6 @@ jobs:
- name: Run Tests in BE
run: npm test
working-directory: be
- name: Build BE
run: npm run build
working-directory: be
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

9 changes: 0 additions & 9 deletions .husky/pre-push

This file was deleted.

4 changes: 2 additions & 2 deletions api/api_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ app.get("/", (req, res) => {
});

// 404 Error Handler (for any unhandled routes)
app.use((req, res) => {
app.use((req, res, next) => {
res.status(404).send("Resource not found");
});

// Generic Error Handler
app.use((error, req, res) => {
app.use((error, req, res, next) => {
console.error(error.stack);
res.status(500).send('Something broke!');
});
2 changes: 0 additions & 2 deletions api/atmRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ router.get("/api/atms", async (req, res) => {

router.post("/api/atms/filter", async (req, res) => {
try {


const atms = await db
.collection("ATMs")
.find({
Expand Down
3 changes: 1 addition & 2 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node api_server.js",
"lint": "eslint ."
"start": "node api_server.js"
},
"author": "",
"license": "ISC",
Expand Down
61 changes: 0 additions & 61 deletions be/cacheUtil.js

This file was deleted.

38 changes: 1 addition & 37 deletions be/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions be/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"license": "ISC",
"devDependencies": {
"eslint": "^8.56.0",
"husky": "^9.0.10",
"jest": "^29.7.0",
"supertest": "^6.3.4"
},
Expand All @@ -22,7 +21,6 @@
"cors": "^2.8.5",
"dotenv": "^16.4.1",
"express": "^4.18.2",
"mongoose": "^8.1.0",
"node-cache": "^5.1.2"
"mongoose": "^8.1.0"
}
}
Loading

0 comments on commit 91f4795

Please sign in to comment.