-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Snapshot | ||
|
||
A simple game with the primary interface being sms | ||
|
||
API built using FastAPI. | ||
Uses Twilio api for the sms interface | ||
SQLAlchemy as an ORM for Sqlite3. | ||
|
||
Users are able to sign up by texting a specific number | ||
|
||
### Development | ||
|
||
Initialize the database | ||
|
||
```bash | ||
sqlite3 snapshot.db < schema.sql | ||
``` | ||
|
||
Setup the .env | ||
``` | ||
environment= | ||
twilio_account_sid= | ||
twilio_auth_token= | ||
twilio_phone_number= | ||
db_name= | ||
hash_secret= | ||
admin_pass= | ||
beta_code= | ||
beta_allowlist= | ||
``` | ||
|
||
Run the tests | ||
```bash | ||
pytest | ||
``` | ||
|
||
Start the server | ||
```bash | ||
fastapi run main.py | ||
``` | ||
|
||
Format code before new changes | ||
```bash | ||
black . | ||
``` |