Skip to content

nstranquist/laylasbirthday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Layla's Birthday Spectacular

React Setup

Ya know the drill ;)

*** Make sure you are using Node 14 to work with amplify. Use NVM to switch versions

  1. git clone [email protected]:nstranquist/laylasbirthday.git
  2. yarn install
  3. yarn start will not work until you have configured amplify

Configuring Amplify

  1. amplify configure --appId d1s4mgfbl9l4c5 --envName staging will connect your aws profile and region correctly
  2. amplify pull --appId d1s4mgfbl9l4c5 --envName staging to sync up your changes
    • amplify pull will work after your first time configuring. Do this before working, like a git pull
  3. amplify push to push your changes up to the cloud. We have staging and production environments so don't worry about pushing broken code, just try not to :p

Authentication

Auth is handled by AWS Cognito and additonal user data is stored in AWS DynamoDB. It will all be handled by a separate set of apis and lambdas, called AdminQueries, to take care of new account signup and authentication.

API

We are going to be using a service called APIGateway to set up our apis, and they will be GraphQL APIs because that shit is hot these days and is conveniently flexible for us to make queries, mutations, and subscriptions with graphql that interface with AWS services

Database(s): DynamoDB

will update when more information is ready

Lambdas

will fill more in here when appropriate

3D STUFF

Loading Models and Preparing them

This helped me a lot

Prerequisite: Install this package globally: npm install -g gltf-pipeline

Steps (if starting with uncompressed gltf model):

  1. Convert gltf to glb: gltf-pipeline -i <source file> -o <output file> example: gltf-pipeline -i shoe.gltf -o shoe.glb
  2. (optional) Compress the model: gltf-pipeline -i shoe.gltf -o shoe.glb --draco.compressionLevel=10
  3. Generate the JSX markup: npx gltfjsx <glTF model source file> example: npx gltfjsx shoe-draco.gltf
  4. Import the component and use as a model in your app! Use this loader: import { useGLTF } from '@react-three/drei/useGLTF'

Art Resources

SVG images were mostly found Here at SVG Repo

About

laylas birthday present

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published