Skip to content
This repository was archived by the owner on May 17, 2022. It is now read-only.

Commit 92416fc

Browse files
author
OrangeLoops
authored
1.0.16 (#1)
1 parent 9f10d82 commit 92416fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+3780
-0
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[*]
2+
charset = utf-8
3+
end_of_line = lf
4+
insert_final_newline = false
5+
indent_style = space
6+
indent_size = 2

.env

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
PORT=5000
2+
3+
DB_HOST=localhost
4+
DB_PORT=5432
5+
DB_NAME=public-phoenix-server
6+
DB_USERNAME=postgres
7+
DB_PASSWORD=postgres
8+
9+
ACCESS_TOKEN_SECRET=xEJbnAP9nS9V/H+YopqVtwk0lE6SML0ZeWNSJ/riJLJsE7ZzbjcFQRummPCLieQLikN26I4+Hacag2i0lbB8WdugeaqCQd4lZZ51wtjXNl8fd2UCQm1gd7eOJUAhi4WbjcameYeSDKk1ZTm149Emz5ybnKoXgxmiHKFC1o5bJzBkSO8fuHC+a/aDY8PEcWZu8XhxkpXJWB7aWLLEdkby4YPLk3/5+IjVCDNaYC4jOfsVO1iHbZObcrkURuOasL8mBRh3EbytNNeXYMAhqtemx6iPYukX7QKLcrw2EQLuPc41AOzx5V0IOIYAXCRP1ojhZtyk5ZNXTRgTJkefeG6n1w==
10+
ACCESS_TOKEN_EXPIRATION=1d
11+
REFRESH_TOKEN_SECRET=7YMLDnNAR1aUeMJGMSe9YuLTtDEWaP65PWD0+UkR73wmGKDsDtd7zSh0jKGfNDk82+FV9gynqXkTCkgvDFkxCvKeEQxvztEK7zwb5kruV5tjQ7awY6/0pjw7Oy/jprJFxGj3tHRRrA/bJdBcKFYAjc6HzHV6P78bDLiMnqylYuXjKdLFJ78XzLKYRa/EvEvoigbk2OkoxwGQveCXMJYpnCtJpecQMgCEC30zEUMgnBGVfcj7edOqgNOp985qjw4ZmncKf16fjHFYro8irTZoGTL1VbL4ORC7LtwgbwdnzX+N1F99Na4j+BCgE3CwSD7aWyrLOAbiMuETCZ0LnaKz5g==
12+
REFRESH_TOKEN_EXPIRATION=1w
13+
14+
GOOGLE_STORAGE_ROOT=staging
15+
GOOGLE_STORAGE_BUCKET=public-phoenix-server-staging.appspot.com
16+
17+
MAILJET_APIKEY_PUBLIC=XXX
18+
MAILJET_APIKEY_PRIVATE=YYY
19+
MAILJET_CAMPAIGN=public-phoenix-server
20+
MAILJET_FROM=user@dummy.com
21+
MAILJET_FROM_NAME=public-phoenix-server
22+
MAILJET_ACTIVATION_TEMPLATE_ID=111
23+
MAILJET_ACTIVATION_LINK=http://localhost:5000/confirmEmail?token={token}
24+
MAILJET_PASSWORD_TEMPLATE_ID=222
25+
MAILJET_PASSWORD_LINK=http://localhost:5000/resetPassword?token={token}

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/*
2+
node_modules/*
3+
typings/*

.eslintrc.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
module.exports = {
2+
extends: ["plugin:@typescript-eslint/recommended", "prettier/@typescript-eslint", "plugin:prettier/recommended", "plugin:jest/recommended"], // "plugin:jsx-a11y/recommended"
3+
parser: "@typescript-eslint/parser",
4+
parserOptions: {
5+
ecmaVersion: 2018,
6+
sourceType: "module",
7+
ecmaFeatures: {
8+
jsx: true,
9+
},
10+
},
11+
rules: {
12+
"prettier/prettier": "warn",
13+
14+
"@typescript-eslint/ban-types": "off",
15+
"@typescript-eslint/camelcase": "off",
16+
"@typescript-eslint/explicit-function-return-type": "off",
17+
"@typescript-eslint/explicit-member-accessibility": "off",
18+
"@typescript-eslint/interface-name-prefix": "off",
19+
"@typescript-eslint/no-empty-interface": "off",
20+
"@typescript-eslint/no-explicit-any": "off",
21+
"@typescript-eslint/no-non-null-assertion": "off",
22+
"@typescript-eslint/no-object-literal-type-assertion": "off",
23+
"@typescript-eslint/no-parameter-properties": "off",
24+
"@typescript-eslint/no-unused-vars": "off",
25+
"@typescript-eslint/no-use-before-define": "off",
26+
"@typescript-eslint/no-var-requires": "off",
27+
"@typescript-eslint/prefer-interface": "off",
28+
},
29+
settings: {
30+
react: {
31+
version: "detect",
32+
},
33+
},
34+
};

.gcloudignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ignore everything
2+
/[!.]*
3+
/.?*
4+
5+
!/build/**
6+
!/package.json

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/.temp/
8+
/coverage
9+
10+
# production
11+
/build
12+
13+
# misc
14+
.DS_Store
15+
.env.local
16+
.env.development.local
17+
.env.test.local
18+
.env.production.local
19+
.env.release.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# webstorm
26+
/.idea/
27+
/.idea/httpRequests
28+
/.idea/httpRequests/http-requests-log.http
29+
/.idea/inspectionProfiles/profiles_settings.xml
30+
/.idea/usage.statistics.xml
31+
/.idea/workspace.xml
32+
33+
# others
34+
.Spotlight-V100
35+
.Trashes
36+
Thumbs.db
37+
Desktop.ini
38+
package-lock.json
39+
/src/**/*.d.ts
40+
41+
/.server/cloud_sql_proxy
42+
/.server/*-client-key.json
43+
/.server/*-service-account.json
44+
/app.production.yaml

.huskyrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
hooks: {
3+
"pre-commit": "lint-staged"
4+
},
5+
};

.lintstagedrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
"src/**/*.{js,jsx,ts,tsx}": ["prettier --write", "eslint --fix", "git add"],
3+
};

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.server/
2+
build/
3+
node_modules/
4+
public/
5+
app.yaml
6+
.server/cloudbuild.yaml
7+
package.json
8+
package-lock.json

.prettierrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
printWidth: 240,
3+
bracketSpacing: false,
4+
jsxBracketSameLine: true,
5+
trailingComma: "es5",
6+
};

.sequelizerc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const path = require("path");
2+
3+
module.exports = {
4+
config: path.resolve("src", "db", "database.js"),
5+
"models-path": path.resolve("src", "db", "models"),
6+
"seeders-path": path.resolve("src", "db", "seeders"),
7+
"migrations-path": path.resolve("src", "db", "migrations")
8+
};

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# IdeaSource Server Project
2+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-orange.svg)](https://github.com/orangeloops/public-phoenix-server/pulls) [![GitHub](https://img.shields.io/github/license/orangeloops/public-phoenix-server.svg)](https://github.com/orangeloops/public-phoenix-server/blob/develop/LICENSE)
3+
4+
## What's IdeaSource?
5+
6+
[IdeaSource](https://ideasource.io/) is an open-source platform to gather, manage and organize ideas for creative problem solving. We used it internally as a sandbox to research React Native development front to back.
7+
8+
## Why IdeaSource?
9+
10+
Coming up with good ideas can be hard, especially after a while when echo chambers tend to appear in teams, groupthink takes over and creative solutions are left out of the conversation. We wished to introduce an easy way to share and manage ideas generated by a larger pool of people than those directly tasked with coming up with a solution, providing mechanisms for everyone to vote to sort the proposed ideas.
11+
12+
## How does it work?
13+
14+
Ideas are gathered around challenges, which can be problems, aspects or topics a group or organization may need to fix or improve. In order to create a challenge you must enter a description, upload an image and set a deadline. Challenges can be either private or public. Private challenges are only available to users registered using the same corporate email domain, while open challenges are open for every user in IdeaSource. Once a challenge is submitted, everyone can start contributing ideas, and votes for ideas already shared.
15+
16+
## Getting Started
17+
18+
Run the following commands in your terminal
19+
20+
```bash
21+
git clone https://github.com/orangeloops/public-phoenix-server.git
22+
cd public-phoenix-server
23+
npm install
24+
npm start:watch
25+
```
26+
[ Optional ] Run `db:seed` to charge the database with initial dummy values
27+
28+
Then open [http://localhost:5000/](http://localhost:5000/graphql) on your web browser.
29+
30+
### Testing
31+
32+
Run `npm test` for test.
33+
34+
## License
35+
>You can check out the full license [here](https://github.com/orangeloops/public-phoenix-server/blob/develop/LICENSE)
36+
37+
This project is licensed under the terms of the MIT license.
38+
39+
---
40+
41+
[orangeloops.com](https://www.orangeloops.com/)  · 
42+
[twitter](https://twitter.com/orangeloopsinc/)  · 
43+
[blog](https://orangeloops.com/blog/)  · 
44+
[IdeaSource](https://ideasource.io/)
45+

0 commit comments

Comments
 (0)