TradingDuck is a vibrant platform for Pokémon card collectors! 🌟 It's a hub where collectors can easily send trade requests to fellow enthusiasts, keep track of upcoming Pokémon-related events, and even locate nearby retailers selling Pokémon cards. 🎉
- docker 🐳
- docker-compose 🐋
- node.js 🟢
- yarn 🧶
- 📝 Copy the
.env.dist
file to.env
. - 📝 Copy the
frontend/.env.dist
file tofrontend/.env
. - 🖋️ Fill in the details in the
.env
files. - 🔧 Run
yarn install
to get everything set up. - 🔨 Execute
yarn setup
for the magic to unfold. - 🏗️ Build it with
yarn build
. - 🌐 Start the engine using
yarn start
.
- 📝 Same as setup: Copy
.env.dist
to.env
andfrontend/.env.dist
tofrontend/.env
. - 🖋️ Fill in the .env files with your awesomeness.
- 🔧 Run
yarn install
to prep the development playground. - 🔨 Execute
yarn setup
to set up the development environment. - 🚀 Launch into development mode with
yarn dev
.
- To reset the database, summon the magic words:
yarn prisma:dbReset
🧙♂️
- You can impersonate any user by setting the Authorization token to a user id. This token goes in the Authorization header of your request. Live your Pokémon dreams! 🌈
- Find the Swagger documentation at http://localhost:3000/api-docs. Explore the Pokémon world! 🌍
- Here's a nifty snippet for refreshing Let's Encrypt certs on production:
0 0 * * 0 expr `date +\%W` \% 2 > /dev/null || docker compose -f <absolute path to folder>/docker-compose-le.yaml up && docker exec -it nginx-service nginx -s reload
- Crontab for backups:
runs the backup script every day at 4am
0 4 * * * /root/tradingduck-main/backup.sh
Feel the power of TradingDuck! 🌟 It's not just about cards; it's about embracing the Pokémon spirit. Get ready to trade, collect, and have a quacking good time! 🃏✨