Skip to content

jreivilo/matcha

Repository files navigation

matcha

project Matcha 42

Node Version

$ node -v
v20.14.0

How to run in dev mode

  • If the database schema changed you need to delete the db/data folder so that it's rebuilt (will be re-created). Admin rights needed (couldn't delete on school imacs)
  • make clean
  • then just run make up
  • frontend is at localhost:4000
  • to look into the database, open adminer at localhost:8080 and enter db credentials
  • to check backend routes and test them, localhost:3000/docs
  • to enter a container, for example frontend, run docker exec -it matcha-frontend sh and you'll have a shell within the container

Run the init script in test to generate user data

$ cd test
$ ./init_basic_user.sh

How to reset the database schema quickly

  • Connect to adminer (go at localhost:8080)
  • credentials (server: matcha-db, username: myappuser, db: myappdb)
  • select all tables, click drop (now there is nothing at all, no data and no schema)
  • click import on the upper left, upload the init.sql file from the repo (at db/init.sql)
  • click execute and you're done

test

About

project Matcha 42

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •