GithubHelp home page GithubHelp logo

oellan / iim-archi-rpg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maxime-p/iim-archi-rpg

0.0 0.0 0.0 18.35 MB

JavaScript 12.29% Python 4.07% TypeScript 66.94% CSS 2.88% HTML 0.43% SCSS 13.39%

iim-archi-rpg's Introduction

✏Project Description

This project is a web application that will allow TTRPG game masters to create scenarios and characters for a spy game.
It uses Mistral AI model to generate scenarios based on the game master's input.
This project is a common project between all IIM year 5 students that intend to merge all of their work together

🚀Prerequisites

  • Node.js 20.11.1
  • Python 3.10

🔌Installation

Clone this project with your favorite way (SSH, HTTPS, GitHub CLI, etc.)

  npm install

copy the .env.example file to .env and fill in the required fields in both back and front workspaces.

  cd AI/
  pip install -r requirements.txt

💻Commands

  • npm run dev - Start the development server
  • npm run dev:front - Start the development server in the front workspace
  • npm run dev:back - Start the development server in the back workspace
  • npm run build - Build the project
  • npm run build:front - Build the project in the front workspace
  • npm run format - Format the code with Prettier
  • npm run format:front - Format the code in the front workspace
  • npm run format-check - Check if the code is formatted correctly
  • npm run format-check:front - Check if the code in the front workspace is formatted correctly

📚Tech Stack

🎨Frontend

⚙Backend

🤖AI

🚧Structure

🎨Frontend

  • public/ - Static files
  • src/ - Entry point of the application
    • src/assets/ - Images, fonts, etc.
    • src/components/ - Reusable components
    • src/pages/ - Pages
    • src/services/ - API services
    • src/types/ - Types

⚙Backend

  • config/ - Configuration files
  • database
    • migrations/- Database migrations
  • public/ - Static files
  • src/ - Entry point of the backend
    • src/admin/ - Admin panel
    • src/api/ - API routes
    • src/extensions/ - Extensions
  • types/
    • generated/ - Generated types

🤖AI

AI script is located in the AI folder in the app.py file.

🌐Endpoints usage

🕵️‍♀️Characters

GET /api/characters

Get all characters

GET /api/characters/:id

Get a character by id

POST /api/characters

Create a character

PUT /api/characters/:id

Update a character by id

DELETE /api/characters/:id

Delete a character by id

📖Scenarios

GET /api/scenarios

Get all scenarios

GET /api/scenarios/:id

Get a scenario by id

POST /api/scenarios

Create a scenario

PUT /api/scenarios/:id

Update a scenario by id

DELETE /api/scenarios/:id

Delete a scenario by id

🤖AI

POST /generate

Generate a scenario based on the input

{
  "characters": ["Name 1", "Name 2"],
  "prompt": "Prompt text ..."
}

POST /advance

Generate a scenario based on the input

{
  "characters": ["Name 1", "Name 2"],
  "prompt": "Prompt text ..."
}

👨‍💻Users

POST /api/auth/local

Login a user with email and password

{
  "identifier": "[email protected]",
  "password": "password"
}

🏗️ Application's architecture schema

archi

iim-archi-rpg's People

Contributors

maxime-p avatar sverker92 avatar timothee-durand avatar oellan avatar canberramenthonnex avatar ericar974 avatar mario2206 avatar abde-exe avatar axelhuon 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.