Get yourself a better MTG Deckbuilding UI
As I am encouraging real people to use the live application, I won't be exposing backend routes in the documentation. Anyone who is curious will have to explore the code.
You will need to Install Prisma 2 to use this project on your machine. I recommend a global installation so you can use it in the future. If you'd rather not, I've included instructions below.
git clone https://github.com/jballa91/deckstars.git
cd deckstars
npm install
cd client
npm install
cd ..
If you opted to not globally install Prisma 2, now run:
npm install prisma --save-dev
You can now run Prisma using npx like the rest of us.
You will now need to create a Postgres database and user for the application, and set up a .env according to the spec in the .env.example file.
Now you'll need to install dev dependencies.
npm install @prisma/cli debug dotenv dotenv-cli --save-dev
One last Prisma install...
npm install @prisma/client
Run the following commands in order.
NOTE: seedSets.js will take a while to run.
npx prisma migrate dev --preview-feature
node seed.js
node seedSymbols.js
node seedUsers.js
node seedSets.js
node seedDecks.js
If all of that succeeded, you're ready to go. Open a second terminal, and in your first terminal run npm start
in the root directory of the project. In the second terminal navigate to the client/
directory and run npm start
. That will open the application in your OS's preferred browser. Have fun! Alternatively you're more than welcome to visit the live site.