This is a web version of the game Tank Tactics
, inspired from this People Make Game video.
The current stack used is:
First, clone the project and install all dependencies:
git clone https://github.com/MokkaCicc/Tankastic
cd Tankastic/
npm install
Make sure to have sqlite3 installed too!
Then, create the database from the prisma migrations:
npx prisma db push
It will create the file dev.db
in the /prisma
directory.
A custom script can be call to generate fixtures:
npm run fixtures
Lastly, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
You can easily monitor and change the database entries with prisma studio:
npx prisma studio
Open http://localhost:5555/ to access a web version of prisma studio
If you modify the prisma/schema.prisma
file, you will need to create a new migration:
npx prisma migrate dev --name [migration_name]
The changes will not appear in prisma studio, you will need to relaunch it