Clean up old file, add to README

This commit is contained in:
Sam Samai 2021-09-01 20:09:38 +10:00
parent 13364ab63c
commit b7d4dd45c4
5 changed files with 4 additions and 7 deletions

View File

@ -1,3 +1,6 @@
# Rocket with SeaOrm example app
`cargo run` in the `rocket_example` folder
- modify the `url` var in `Rocket.toml` to point to your chosen database
- turn on the appropriate database feature for your chosen db in `Cargo.toml`
- `cargo run` to start the server
- open browser to the address shown in `🚀 Rocket has launched from ` line

View File

@ -1,6 +0,0 @@
CREATE TABLE posts (
id INTEGER PRIMARY KEY AUTOINCREMENT,
title VARCHAR NOT NULL,
text VARCHAR NOT NULL,
published BOOLEAN NOT NULL DEFAULT 0
);