Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isaac/merge main release #88

Merged
merged 19 commits into from
Apr 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
512c725
Add Jest testing (#63)
kidzegeye Nov 14, 2022
a0c56bb
Add Docstrings to Test Factory Functions (#64)
kidzegeye Nov 17, 2022
f974d1a
Update README.md
snajima Feb 15, 2023
bf2774c
Implement community board models (#65)
isaachan100 Mar 18, 2023
6505521
Add magazines to weekly debrief (#66)
isaachan100 Mar 20, 2023
8cd07aa
Implement reshuffle articles (#68)
SashaLoayza Mar 23, 2023
08705a4
Implement magazine search (#69)
isaachan100 Mar 23, 2023
ca89a00
Convert result of shuffling resolver to ArticleModel (#71)
SashaLoayza Mar 25, 2023
274b344
Add 3 new publications (Cornell Daily Sun, Collective X, and Cornell …
SashaLoayza Apr 4, 2023
eccf00c
Resolve merge conflicts in publications.json (keep release version) (…
SashaLoayza Apr 12, 2023
94ddfa2
Revert "Resolve merge conflicts in publications.json (keep release ve…
isaachan100 Apr 12, 2023
ebd91ec
fix merge conflicts (#78)
SashaLoayza Apr 12, 2023
573b70d
Implement community board [1/7] (#81)
isaachan100 Apr 21, 2023
904c4ae
Add imageURL field to Magazine entity. (#73)
SashaLoayza Apr 21, 2023
e012894
Add no rules to volume-backend's publications.json (#82)
SashaLoayza Apr 23, 2023
34f1bd8
Implement community board (flyer tests) [2/7] (#84)
isaachan100 Apr 25, 2023
ed6913f
Implement community board organizations (#85)
isaachan100 Apr 26, 2023
e0dcd22
Implement community board (organization tests) [4/7] (#86)
isaachan100 Apr 27, 2023
6a0c1cc
Merge branch 'main' into isaac/merge-main-release
isaachan100 Apr 28, 2023
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
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ module.exports = {
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-unused-vars': 0,
'semi-style': ['error', 'last'],
'import/named': 0,
'import/prefer-default-export': 0,
},
// This gets rid of weird react error for non-react project
settings: {
Expand Down
1 change: 1 addition & 0 deletions .github/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run jest
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ nohup.out
*/certificates/*
Makefile
start.sh
*secrets*

# ignore database dumps
dump/
dump/
25 changes: 17 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
# volume-backend
# volume-backend

An open-sourced backend for Volume, a news aggregator for Cornell's publications
and magazines. Made by [Cornell AppDev](cornellappdev.com).
and magazines. Made by [Cornell AppDev](cornellappdev.com).

Tech stack:

1. Typescript/Node.js
2. MongoDB
3. GraphQL

## Installation
## Installation

To run this project, you must have [Node.js](https://nodejs.org/en/download/) and [Typescript](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html) installed on your machine.
To run this project, you must have [Node.js](https://nodejs.org/en/download/) and [Typescript](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html) installed on your machine.

Clone the project with

`git clone https://github.com/cuappdev/volume-backend.git`

After cloning the project `cd` into the new directory and install dependencies with
After cloning the project `cd` into the new directory run

`git config core.hooksPath .github/hooks`

and install dependencies with

`npm install`

Expand All @@ -28,9 +33,13 @@ To run the project, use

Make sure `MongoDB` is installed. [See installation guide](https://docs.mongodb.com/manual/installation/).

To view your database, enter your terminal and run
To run MongoDB on a MacOS device, run

`brew services start mongodb-community@6.0` (6.0 may be outdated, check website for updated version).

and connect MongoSH to a running instance using

`mongo`
`mongosh`

From here, you can interact with your database by typing `use <db_name>`.

Expand All @@ -44,4 +53,4 @@ We recommend using [`direnv`](https://direnv.net/). To set up, run the following

## Configuration(optional)

We recommend using ESLint and Prettier for linting/formatting. If you are using VSCode, they can be downloaded directly through the Extensions panel. Run ESLint on the codebase with `npm run lint` and Prettier with `npm run format`.
We recommend using ESLint and Prettier for linting/formatting. If you are using VSCode, they can be downloaded directly through the Extensions panel. Run ESLint on the codebase with `npm run lint` and Prettier with `npm run format`.
11 changes: 11 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: [
'src/'
],
transformIgnorePatterns: ['<rootDir>/node_modules/'],
moduleFileExtensions: ['js', 'ts'],
maxWorkers: 1,
};
1 change: 0 additions & 1 deletion migrate-mongo-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const config = {
mongodb: {
// TODO Change (or review) the url to your MongoDB:
url: "mongodb://localhost:27017",

// TODO Change this to your database name:
databaseName: "volume",

Expand Down
20 changes: 20 additions & 0 deletions organizations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"organizations": [{
"bio": "",
"name": "Women in Stem at Cornell",
"slug": "wicc",
"websiteURL": "https://wicc.cornell.edu/#/"
}, {
"bio": "",
"name": "AppDev",
"slug": "appdev",
"websiteURL": "https://www.cornellappdev.com/"
},
{
"bio": "",
"name": "Badminton Club",
"slug": "badminton",
"websiteURL": "https://cornellbadminton.com/"
}
]
}
Loading