Code Monkey home page Code Monkey logo

modern-stack-web-portfolio's Introduction

Modern Stack Portfolio

Known Vulnerabilities

Monorepo for

Deploy

  1. Deploy to now Graphql
  2. Deploy to now React

Development

Cloning

clone the mono-repo modern-stack-web-portfolio

git clone --recursive [email protected]:aretecode/modern-stack-web-portfolio.git
cd modern-stack-web-portfolio
git submodule foreach git checkout master

if you are facing with clone, you may not have SSH key configured with your GitHub account, follow these steps to configure yours in a few seconds. Once installed, do the cloning step again.

the submodule checkout master command is because each submodule is pointed to a specific commit, so running this command will point them to master, after which they can be used the same way any other repo is used (pulling, merging, committing...)

Yarn Install

Run the following command to install all the packages

yarn install

There are two sub-modules in the stack. We are using yarn workspaces, so no need to run yarn install multiple times in each modules, running at the top level is enough.

Run the build

Tip: for ease of use, open two terminal windows

1. client:

cd packages/client
yarn dev

Then, open http://localhost:3000

2. graphql:

cd packages/graphql
yarn dev

Then, open http://localhost:4000/graphql

Setup the data

After you running the build, you won't see any data.

To see the content, we need to set it ourselves:

  1. open http://localhost:4000/graphql

  1. use the following query
mutation SetResume($basics: BasicsInputType, $work: [WorkInputType]) {
  setResume(basics: $basics, work: $work) {
    responseMessage
  }
}

  1. open the Query Variables

  1. add your JSON to the Query Variables. Example data can be found in this gist

  1. click the play/(>) button to run it

  2. refresh the client

  3. profit???

modern-stack-web-portfolio's People

Contributors

aretecode avatar cra2ycoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

modern-stack-web-portfolio's Issues

Rename Resume => Portfolio

  • monorepo name
  • graphql repo name
  • react repo name
  • now.json names
  • package.json names
  • file names
  • code naming (except typing & query, which we can migrate)
  • static names
  • script names
  • submodule names
  • typing names
  • query names
  • firebase name
  • redis name
  • any env names

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.