Code Monkey home page Code Monkey logo

ft_transcendence's Introduction

ft_transcendence

by ORMARTIN && GGILBERT && PTROGER

Whaow

TECH USED

-- docker-compose | |-- Database | | | |-- Postgres // Database management | | | |-- Sqitch // Database migrations | |-- Back -- NestJS | |-- Front -- Vue |

POSTGRES

  1. ---- CONTAINER ----

Doc-> https://hub.docker.com/_/postgres/ best doc ever, docker image comes with a lot of features, notably:

  • launch initialization scripts only if /data doesnt exist
  • all envs variable cf link above
  1. ---- SETUP ----

First you will need to download sqitch client for Postgres. Unfortunately, we will have to user homebrew on school computers.

brew tap sqitchers/sqitch
brew install sqitch --with-postgres-support --with-sqlite-support
sqitch help

Docs -> https://sqitch.org/docs/manual/ https://sqitch.org/docs/manual/sqitchtutorial/

  1. ---- MIGRATIONS ----

Each time you use sqitch add, it creates a .sql file in which we write the script to migrate. do :

alias sqd='date -u "+%Y_%m_%d_%Hh%M_"'

so that everytime you create a migration using 'sqitch add' you can do :

sqitch add $(sqd)my_migration_name -n "My migration description"

or you can use the script ./srcs/database/create_migration.sh do :

sh create_migration.sh [my_mygration_name] ["My migration description"]

You will also need to write a test and a revert script in sql. For example, a test script on a CREATE TABLE migration can be an ALTER TABLE assessment on this table. If it works, your test passes, if not it failed.

OH HI Maaarc !!

Un bug étrange pendant un reload sur dashOther, l'img width est de 100% car il ne prends pas en compte les @media screen etc

ft_transcendence's People

Contributors

ggilb3rt avatar ormartin1202 avatar ptroger 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.