time to complete ~ 10 mins YouTube video setup tutorial
- Node 15+
- TSC
- Yarn / npm
- Bash
- VSC
- Chrome
- Chrome Debugging Extension (VSC)
- Nightly JS Debugging Extension (VSC)
- Create OpenId credentials
- Set Application Type to
Web application
. Name & Authorized JS Origins are not important. - Set callback to
http://localhost:5050/oauth/google/callback
- Hit save
Client ID
isgoogle key
inserver/fake keys/fake keys.ts
Client Secret
isgoogle secret
inserver/fake keys/fake keys.ts
- Follow DB Setup
- Connect to Application
- Copy URI
mongooseKey
is the URI- Replace the
<username>:<password>@....net/<name>?retry...
angle bracketed parts with their corresponding data,username
andpassword
are the credentials for thedb admin
user. Put them in so that the angled brackets are gone :Twiggeh:[email protected]/MyDataBaseName?retry...
git clone https://github.com/Twiggeh/ImgurClone
- Open Imgur Clone as project root folder in VSC
- Run
cd client && yarn install
from project root - Run
cd server && yarn install
from project root - Run start
TSC Compiler Server
from VSC's debuggin menu. This prevents a nodemon bug. - Once it loads up (you will see lots of errors in the terminal) stop the debugging task.
- Now you can start
start debugging session chrome / firefox
Firefox has no breakpoints setup though. - Wait for it to load (again a lot of errors in the watcher / compiler terminals)
- Run
cd client && yarn run gql:codegen
from project root - Wait for previous command to finish and run
cd server && yarn run gql:codegen
from project root - Wait for previous command to finish, open up
App.tsx
and edit it to restartwebpacks
compilation.
You should now be able to refresh chrome, have breakpoints throughout the entire application, be able to login and post images to the app. All images are stored under dist/public/uploads/