My doom
- Navigate to the frontend directory:
cd frontend - Start the frontend server:
npm start
cargo sqlx prepare
To create the database file.
2. ```sh
cargo run
to build and run the project.
-
Start or stop the database:
pg_ctl start pg_ctl stop
Or register it as a service by running:
pg_ctl register -N PostgreSQL
from an elevated shell.
-
Default superuser login:
- Username: postgres
- Password: redacted
-
Backup the database:
pg_dump -U postgres -W -F c -b -v -f db_backup.dump social_media_db
-
Restoring backup:
pg_restore -U postgres -W -d social_media_db -v db_backup.dump