Skip to content

Repository files navigation

Installation

Env

Turn env sample file into env

cp .env.sample .env

Don't delete .env.sample because it will pollute the git commit history for next time

Scripts

Make all scripts executable.

chmod 777 ./scripts/*

Database

Create a database user

createusernewsletter with password 'postgres';
alteruser newsletter with superuser; -- add superuser role for sqlx-cli to workcreatedatabasenewsletter; -- optional as `sqlx database create` will create the database if it doesn't exist

Run migrations

cargo binstall sqlx-cli # or `cargo install sqlx-cli` if you don't have `cargo-binstall` installed
sqlx database create sqlx migrate run

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages