Skip to content

satvikpendem/Zero-To-Production-In-Rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fb79334 · Jan 20, 2023

History

59 Commits
Jan 4, 2023
Jan 4, 2023
Jan 4, 2023
Nov 11, 2022
Jan 20, 2023
Nov 9, 2022
Jan 17, 2023
Nov 11, 2022
Nov 11, 2022
Jan 4, 2023
Jan 4, 2023
Nov 1, 2022
Nov 9, 2022
Nov 9, 2022
Nov 11, 2022
Nov 9, 2022
Nov 2, 2022

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

create user newsletter with password 'postgres';
alter user newsletter with superuser; -- add superuser role for sqlx-cli to work
create database newsletter; -- 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

Watchers

Forks

Releases

No releases published

Packages

No packages published