Giter Club home page Giter Club logo

deep-thoughts's Introduction

Deep Thoughts

This is a project that I worked on that is one of my first full-stack MERN applications. This also uses GraphQL to act as a sort of API between the user and the MongoDB database.

Local Setup

There are three areas of dependencies: the root directory, /client and /server. Make sure to follow the instructions carefully.

  • cd into the root f the application and install dependencies using npm i
  • After that is completed, run npm run install. This will leverage the concurrently package and install dependencies in both /client and /server

For Live Development

All you need to do, after all dependencies are installed, is run npm run develop in the root directory. This will start the Express and Apollo servers and will also initiate the frontend development environment.

Seeding the Database

While not strictly necessary, I have provided some mock data if you would like to test interactions between different mock users and their posts. This is good if you are refactoring.

Service Worker

There is the option of implementing a service worker in this project. Navigate to ./client/src/index.js to view the implementation of the service worker. You can comment out serviceWorker.register() if you don't wish to use it. However, service workers are beneficial because they let the app load faster on subsequent visits in production, and gives it offline capabilities. However, it also means that developers (and users) will only see deployed updates on subsequent visits to a page, after all the existing tabs open on the page have been closed, since previously cached resources are updated in the background.

deep-thoughts's People

Contributors

dopecello avatar

Stargazers

Ginsky avatar

Watchers

 avatar

deep-thoughts's Issues

Set up mutations and JWT logic

  • As a user, I can create my own account and login

  • As a logged in user, I can create thoughts, react to thoughts, and add friends

Set up GraphQL queries

As a user, I can retrieve data about users, their thoughts, reactions, and friends from the server

Implement user-based mutations

  • As a user, I can create a thought, create a reaction to a thought, and add a friend through the front end of the application

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.