Skip to content

berlinjunker/rust-api-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Links


Setup Docker

  • Repository aus clonen:
  • cd docker
  • docker-compose up -d

DB Setup: Adminer: localhost:8081 Server: rust-postgres User: postgres Password: example Links "Importieren" Datei "backup_users.sql" und "Ausführen" klicken. DB "Postgres" enthält nun eine "Users" Tabelle ==> DB Einrichten erledigt.


Docker starten:

  • docker exec -it 006b32426a14 sh

  • Docker Workdir: cargo install --path .

  • cargo run (Der erste Aufruf nach Setup geht evtl. schief)


Setup Alternative Postgres on MacOs via Homebrew

  • brew install postgresql@15
This formula has created a default database cluster with:
  initdb --locale=C -E UTF-8 /opt/homebrew/var/postgresql@15
For more details, read:
  https://www.postgresql.org/docs/15/app-initdb.html

postgresql@15 is keg-only, which means it was not symlinked into /opt/homebrew,
because this is an alternate version of another formula.

If you need to have postgresql@15 first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/postgresql@15/bin:$PATH"' >> ~/.zshrc

For compilers to find postgresql@15 you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/postgresql@15/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/postgresql@15/include"

For pkg-config to find postgresql@15 you may need to set:
  export PKG_CONFIG_PATH="/opt/homebrew/opt/postgresql@15/lib/pkgconfig"

To start postgresql@15 now and restart at login:
  brew services start postgresql@15
Or, if you don't want/need a background service you can just run:
  LC_ALL="C" /opt/homebrew/opt/postgresql@15/bin/postgres -D /opt/homebrew/var/postgresql@15
==> Summary
�  /opt/homebrew/Cellar/postgresql@15/15.4: 3,698 files, 61.5MB
==> Running `brew cleanup postgresql@15`...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published