Skip to content

This is a web version of the game `Tank Tactics`, inspired from a People Make Game video.

License

Notifications You must be signed in to change notification settings

MokkaCicc/tankastic

Repository files navigation

Tankastic

This is a web version of the game Tank Tactics, inspired from this People Make Game video.

Stack

The current stack used is:

Getting Started

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.

Working with prisma

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

About

This is a web version of the game `Tank Tactics`, inspired from a People Make Game video.

Topics

Resources

License

Stars

Watchers

Forks