Giter Club home page Giter Club logo

digi-mafia's Introduction

This is going to be a mafia party game app.

so far developed: some routes of creating user and authorization with jwt token, only backend side. routes of add roles and players to game. routes of starting the game and assigning roles to players.

assist to Moderator part is almost Done.

to be developed: actions of the game like nights actions, different logic of the game and rules.

Hope it brings some joy to people !

Setting Up the Environment: Mac: 1 - first you need to install homebrew. you can get help from here https://www.igeeksblog.com/how-to-install-homebrew-on-mac/ it's an open source package manager for mac. 2 - now you need to install postgresql, with or without brew. brew install postgresql@15 3 - you need to install pip3 if you already don't have. 4 - in the folder of the project, set up a virtual env. you can install it with pip. 5 - activate the venv. source {venv-name}/bin/activate 6 - install the requirements. pip3 install -r requirements.txt 7 - install Docker desktop for mec. https://docs.docker.com/get-docker/ 8 - now just use docker-compose command to run the postgres container. docker-compose up -d 9 - now start the fastapi main with uvicorn server. uvicorn main:app --reload 10 - everything's ready to test now. use the swagger to work with APIs. localhost:8000/docs/

Linux: for linux its kind of the same approach and steps are the same!

feel free to message me if something went wrong and you couldn't figure it out yourself.

digi-mafia's People

Contributors

erfans1 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.