Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: swapkats/project-perspective
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.7
Choose a base ref
...
head repository: swapkats/project-perspective
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jul 5, 2020

  1. Fixes docker build

    swapkats committed Jul 5, 2020
    Copy the full SHA
    47ede6c View commit details
  2. Adds setup instructions

    swapkats committed Jul 5, 2020
    Copy the full SHA
    ed3e349 View commit details
  3. Fixes deploy config

    swapkats committed Jul 5, 2020
    Copy the full SHA
    967fd4d View commit details
  4. Fixes prod deploy

    swapkats committed Jul 5, 2020
    Copy the full SHA
    41e4085 View commit details
  5. Update README.md

    swapkats authored Jul 5, 2020
    Copy the full SHA
    19bfdc0 View commit details
  6. Update README.md

    swapkats authored Jul 5, 2020
    Copy the full SHA
    73dbe3e View commit details
  7. Adds neo4j docker service

    swapkats committed Jul 5, 2020
    Copy the full SHA
    d72348e View commit details
  8. Copy the full SHA
    7aaf070 View commit details
  9. Update README.md

    swapkats authored Jul 5, 2020
    Copy the full SHA
    4ba0b6b View commit details
  10. Copy the full SHA
    88115da View commit details
  11. Adds apollo server

    swapkats committed Jul 5, 2020
    Copy the full SHA
    e2b5faa View commit details

Commits on Jul 6, 2020

  1. Fixes docker dev build

    swapkats committed Jul 6, 2020
    Copy the full SHA
    e0fe615 View commit details
  2. Fixes server db connection

    swapkats committed Jul 6, 2020
    Copy the full SHA
    eea6f57 View commit details
  3. Change typedefs

    swapkats committed Jul 6, 2020
    Copy the full SHA
    8658af6 View commit details
  4. Copy the full SHA
    441060c View commit details
  5. Delete package-lock.json

    swapkats authored Jul 6, 2020
    Copy the full SHA
    d38aec0 View commit details

Commits on Jul 7, 2020

  1. wip Adds client integration

    swapkats committed Jul 7, 2020
    Copy the full SHA
    5e10b7f View commit details
  2. Update README.md

    swapkats authored Jul 7, 2020
    Copy the full SHA
    55b6a77 View commit details
  3. Fetches map from query

    swapkats committed Jul 7, 2020
    Copy the full SHA
    7549927 View commit details
  4. Adds text

    swapkats committed Jul 7, 2020
    Copy the full SHA
    9a9eb50 View commit details
  5. Merge branch 'db-root'

    swapkats committed Jul 7, 2020
    Copy the full SHA
    7ec4d23 View commit details
  6. Removes duplicate canvas

    swapkats committed Jul 7, 2020
    Copy the full SHA
    59109d6 View commit details

Commits on Jul 8, 2020

  1. Copy the full SHA
    3a85ee3 View commit details
  2. Update README.md

    swapkats authored Jul 8, 2020
    Copy the full SHA
    14fdc17 View commit details
  3. Copy the full SHA
    76c6fca View commit details
  4. Merge branch 'restructure' of personal.github.com:swapkats/project-pe…

    …rspective into restructure
    swapkats committed Jul 8, 2020
    Copy the full SHA
    f270d80 View commit details
  5. Merge pull request #31 from swapkats/restructure

    Migrates to using web components
    swapkats authored Jul 8, 2020
    Copy the full SHA
    35fba9f View commit details
  6. Add sub nodes

    swapkats committed Jul 8, 2020
    Copy the full SHA
    cb8d7ec View commit details
  7. Moves contexts

    swapkats committed Jul 8, 2020
    Copy the full SHA
    7df0948 View commit details
  8. Rearranges scene elements

    swapkats committed Jul 8, 2020
    Copy the full SHA
    c73a425 View commit details

Commits on Jul 9, 2020

  1. Uses text geometry

    swapkats committed Jul 9, 2020
    Copy the full SHA
    b658713 View commit details
1 change: 1 addition & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
"@babel/preset-typescript"
],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
"@babel/plugin-proposal-class-properties"
]
}
2 changes: 1 addition & 1 deletion .github/workflows/aws.yml
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ jobs:
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
make prod -- -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules
lib
yarn-error.log
public/app.bundle.js
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Dockerfile (tag: v3)
FROM node:12.18.2
WORKDIR /tmp
COPY package.json /tmp/
RUN npm config set registry http://registry.npmjs.org/ && npm install
COPY package.json yarn.lock /tmp/
RUN yarn install
WORKDIR /usr/src/app
COPY . /usr/src/app/
RUN cp -a /tmp/node_modules /usr/src/app/
CMD ["npm", "start"]
EXPOSE 8080
CMD ["yarn", "bundle"]
COPY /public /var/html/public
EXPOSE 80
6 changes: 6 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Dockerfile (tag: v3)
FROM node:12.18.2
WORKDIR /usr/src/app
RUN npm config set registry http://registry.npmjs.org/ && npm install
CMD ["npm", "start"]
EXPOSE 8080
5 changes: 5 additions & 0 deletions Dockerfile.server
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Dockerfile (tag: v3)
FROM node:12.18.2
WORKDIR /usr/src/app
RUN yarn install
EXPOSE 5000
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dev:
@docker-compose -f docker-compose.dev.yml up

prod:
@docker-compose -f docker-compose.yml up --build
32 changes: 23 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -4,10 +4,23 @@ Perspective.wiki is the wiki for Mind maps that everybody can edit.

## Table of contents

1. [Setup](https://github.com/swapkats/project-perspective#setup)
1. [Philosophy](https://github.com/swapkats/project-perspective#philosophy)
2. [How we'll build it](https://github.com/swapkats/project-perspective#how-well-build-it)
3. [Contribute](https://github.com/swapkats/project-perspective#contribute)

## Setup

To Setup development locally, install docker and run.

`
make dev
`

Dev server runs on `localhost:8080`.

Prod development is done via github actions to aws on every new release.

## Philosophy

> Knowledge wants to be spread. It should not be constrained at any cost.
@@ -16,22 +29,23 @@ Project Perspective is a free open source project whose single aim is to spread

Why Mindmaps? Mind maps are efficient for learning. Mind maps work in a way that is very natural to how our brains learn and store new information. They help us access more regions of our brain like linguistic and creative regions to improve learning experience.

Perpective aims to be an upgrade over mind map in a sense that that prepective mind maps are designed to utilise more of our brain by simulating an environment natural to how our brains developed over time. With perpersitive maps we'll be able to add extra dimension to mind maps, letting the user play with information like our monkey ancestors did.
Perspective aims to be an upgrade over mind map in a sense that that prepective mind maps are designed to utilise more of our brain by simulating an environment natural to how our brains developed over time. With perspective maps we'll be able to add extra dimension to mind maps, letting the user play with information like our monkey ancestors did.

It aims to move away from slow auditorial learning process like books to step into a new generation learning medium by making use of all auditory, visual and kinesthetic mediums of learning.

Finally Perspective.wiki is a public wiki anyone can edit the mind maps and maintain them just like wikipedia.

## How we'll build it

### Tecnical Stack
### Stack

1. Three.js
2. Neo4j
3. GraphQL
4. Node
- Three.js
- Web components(Lit-Element)
- RxJS & redux-observable
- Neo4j with Apollo
- Node


## Contribute

Join our discord server https://discord.gg/zu7rU9
Assign yourself stories from project board here https://github.com/swapkats/project-perspective/projects/1

Join our discord server https://discord.gg/dFKJ9ja and say hi
26 changes: 26 additions & 0 deletions app/api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import ApolloClient, { gql } from 'apollo-boost';

const client = new ApolloClient({
uri: 'http://localhost:5000/',
});

const getMap = (mapId: String) => client
.query({
query: gql`
query GetMap($mapId: String) {
Map(root: $mapId) {
_id
root
nodes {
text
}
}
}
`,
variables: {
$mapId: mapId,
},
})
.catch(console.error);

export default { getMap };
19 changes: 19 additions & 0 deletions app/contexts/cameraContext.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const createContext = (scene) => {
let ctx = scene;

const setCamera = (newCtx) => {
ctx = newCtx;
};

const useCamera = () => {
if (!ctx) {
throw new Error('Context is not defined');
}

return ctx;
};

return { useCamera, setCamera };
};

export default createContext();
19 changes: 19 additions & 0 deletions app/contexts/rendererContext.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const createContext = (renderer) => {
let ctx = renderer;

const setRenderer = (newCtx) => {
ctx = newCtx;
};

const useRenderer = () => {
if (!ctx) {
throw new Error('Context is not defined');
}

return ctx;
};

return { useRenderer, setRenderer };
};

export default createContext();
19 changes: 19 additions & 0 deletions app/contexts/sceneContext.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const createContext = (scene) => {
let ctx = scene;

const setScene = (newCtx) => {
ctx = newCtx;
};

const useScene = () => {
if (!ctx) {
throw new Error('Context is not defined');
}

return ctx;
};

return { useScene, setScene };
};

export default createContext();
Loading