API for the Bazaar Realm Skyrim mod
Go to file
Tyler Hallada 65e6ba1f8a WIP adding interior_refs endpoints
Ran into some limitations of sqlx while trying to bulk create interior_refs. I
also discovered how slow creating hundreds of rows in postgres is and I'm
planning on saving interior_refs data in a jsonb column instead which seems to
be much faster.
2020-07-19 03:01:20 -04:00
src WIP adding interior_refs endpoints 2020-07-19 03:01:20 -04:00
.gitignore Remove refinery.toml from source control 2020-07-19 03:00:54 -04:00
Cargo.lock WIP adding interior_refs endpoints 2020-07-19 03:01:20 -04:00
Cargo.toml WIP adding interior_refs endpoints 2020-07-19 03:01:20 -04:00
devserver.sh Initial commit. WIP shops endpoint 2020-07-13 01:55:36 -04:00
README.md Initial commit. WIP shops endpoint 2020-07-13 01:55:36 -04:00

Development Setup

  1. Install and run postgres.
  2. Create postgres user and database (and add uuid extension while you're there ): createuser shopkeeper createdb shopkeeper sudo -u postgres -i psql postgres=# ALTER DATABASE shopkeeper OWNER TO shopkeeper; \password shopkeeper postgres=# CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
  3. Save password somewhere safe and then update the password in refinery.toml and add a .env file to the project directory with the contents: DATABASE_URL=postgresql://shopkeeper@@localhost/shopkeeper
  4. Run cargo run -- -m which will compile the app in debug mode and run the database migrations.
  5. Run ./devserver.sh to run the dev server (by default it listens at 0.0.0.0:3030).

Todo

  • Make self-contained docker container that can run the app without any setup.