The react-native code can be found in the /client directory.
The prisma code (in typescript) can be found in /server directory.
For setting up server, use this in the terminal:
- cd to
/server/database
docker-compose up -d
prisma deploy
This will start the docker container for our db.
To access db, use this in the terminal:
docker container ls
and get the name of the container using mysqldocker exec -it *container-name* bash
- The above command will put us in a bash shell.
- Here use:
mysql -pprisma
to access the db. - We can now use regular mySql commands such as
show databases;
etc to explore.
Once the db is set up and deployed, cd to root of server directory and run yarn dev
.