Coder Social home page Coder Social logo

originalyellow / dnd-web-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 3.31 MB

Webapp inspired by the Dungeons and Dragons Beyond webapp. Uses node, graphql, mongodb, vue, and functional programming techniques with ramda.

Home Page: https://dnd-web-app-client-bxpugqmw9.now.sh/#/

Vue 20.30% HTML 0.20% JavaScript 79.50%
vuejs

dnd-web-app's Introduction

dnd-web-app's People

Contributors

eerlikh avatar originalyellow avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

eerlikh

dnd-web-app's Issues

Integrate ESLint

Now that I'm not using typescript anymore, I need to replace its linter. I'm going to install eslint with vue cli, but I'll need to also get it to work nicely with vs code, come up with my own rules if I want, and explore the docs a bit to see if I should do anything else.

Finish app skeleton

Add visual elements like tables for every stat, player inventory, etc. - every necessary player detail that should be tracked. This doesn't include things that could be looked up in a DND book. Write an exhaustive list of the specific things to add here.

Integrate vuetify-scss

Install the vuetify-scss package and switch over to using sass instead of stylus as a css-preprocessor.

The motivation for this is simply that I am already comfortable with using sass and stylus seems to be dying.

Split build process into production and development versions

Right now im manually switching back and forth by editing one webpack.config file which is retarded - that and I need to do more research into the optimization settings so i can understand them better without having to rely on setting the mode to "production" doing the work for me.

TODO: add resources

Move relational entities to an SQL database

The relational entities that I have so far - Users, PlayerCharacters, and Campaigns - really should be stored in an SQL or otherwise relational database instead of mongodb. The issue is that cascade deletes, ACID transactions, etc. are troublesome with a nosql database like mongodb.

Add additional webpack loaders/plugins

In order to style vuetify components and use vuetify themes, i need a loader for stylus.
I also should add a loader for assets (esspecially images).
I should add some plugins like the one that cleans the dist folder automatically.

Establish and implement naming conventions

I like these so far:

  • Base components (that is, a "dumb" component that has no interactivity and just displays data) should begin with the prefix "Base". (As in : "BaseButton.vue", "BaseTable.vue")
  • Components that are created and used only once should be prefixed with "The", as in "TheHeading.vue, "TheSidebar.vue"
  • Child components tightly coupled with their parent should include the parent component name as a prefix. For example, "TodoList.vue" has children "TodoListItem.vue" & "TodoListAddButton.vue"
    source

Integrate graphql+apollo

Apollo seems to be a vue cli plugin (although it probably exists as a package as well) that is a vue wrapper for graphQL. Seems fairly popular so it's probably the best way to integrate graphQL.

Add "learning resources" section to readme

This is to help me reach my learning goals for this project as well as to help my fellow noobs who might want to join in on the learnings and possibly get up to speed so they can contribute.

Split vue file into components

Right now, app4.vue is mostly one giant, poorly factored template. Refactor it so that its split into multiple components and use v-for directives (or something similar) to reduce duplication. Try using typescript classes instead of the js way of defining vue components.

Integrate Prisma

Background: as of now, I have a basic backend stack with node, mongodb, mongoose, and apollo-server. Properly integrating mongoose into apollo-server has been kind of a can-of-worms so far.

Prisma seems to be great substitute for an ORM like entity framework (it does everything entity framework does + it can do both nosql and sql databases). But hold off integrating it until the app gets bigger and maintaining the backend gets to be a pain.

Side-note: since I plan on moving to Prisma, I'm going to be a little sloppy and slapdash with the mongoose/apollo-server integration for now since it is going to all get replaced with much nicer code eventually.

Resources:

Improve mongodb validation

TODO:

  • Prevent multiple references from being added to an array if elements should be unique
  • Prevent multiple entities being created if they have identical data which should be unique

Remake the project with vue cli (do not include typescript)

It turns out that Ramda and typescript do not mix (source: my own experiences + this article that confirmed my suspicions. So I'm going to sacrifice dynamic type checking for being able to use Ramda/FP to its full extent.

To take out two birds with one stone, I'm also going to try using the seemingly very powerful and useful vue cli. I'll remake the project using that and not include typescript this time.

Resources:

  • List of few cool vue cli plugins (storybook, vuetify, electron builder, apollo) (link)
  • How to "replace" a project with a new with git/github (link)

Plan backend

Plan out what steps need to be taken to complete a basic backend (for learning purposes, I want part of the stack to be ASP .NET Core/Web API, and Microsoft SQL Server).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.