Skip to content

A website where users can chat and play Pong with each other.

Notifications You must be signed in to change notification settings

Tizi42/ft_transcendence_group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nest Logo PostgreSQL Logo VueJS Logo Docker Logo

ft_transcendence

42 school project, we have to build a single page application. We have to implement a chat, a pong game, the authentication with 42 api, and some other things.

Run our project

This project is running inside a docker, you can lunch it through docker-compose :

docker-compose up --build

Once running, to connect to the database with CLI :

psql -h localhost -p 5432 -d ft-transcendence-db -U user-admin

Backend

NestJs is a nodeJs framework working with TypeScript.

Running the app

# development
$ npm run start

# watch mode, at every change the server restart
$ npm run start:dev

Database

Postgresql is an open source relational Database working with SQL.

Tips to use Postrges as CLI

The default user is postgres with his database postgres.

# Launch a specific database
$ psql <db_name>

# Launch user postgres with sudo
$ sudo -u postgres psql

# Inside postgres CLI psql
<db_name>=> 

# To list databases
<db_name>=> \l+

# To list roles (users)
<db_name>=> \du+

# To quit
<db_name>=> \q

# To show authication (if log with superuser postgres)
postgres=> SELECT * FROM pg_authid;

# To connect to another database
<db_name>=> \c <new_db_name>

# To list all tables for the current db
<db_name>=> \dt+

Frontend

VueJS use javascript (typescript compatible also) to build user interface.

Running the app

It's running by default on port 8080.

# developement
$ npm run serve

About

A website where users can chat and play Pong with each other.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •