Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lutfianRhdn authored Aug 24, 2023
1 parent 33c0421 commit fa01eed
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

[![SQLAlchemy](https://img.shields.io/badge/Prisma-lastest-green.svg)](https://www.SQLAlchemy.io/)

## Project Description

## How to Install and Run the Project
To install and run the SeTicket project locally, please follow these steps:

Expand Down Expand Up @@ -44,7 +42,20 @@ To run this project, you will need to add the following environment variables to

`DATABASE_URL`
`BASE_URL`
`DEBUG`
`PORT`
`JWT_ACCESS_TOKEN_EXPIRES`
`JWT_ACCESS_TOKEN_SECRET`
`JWT_ACCESS_TOKEN_ALGORITHM`
`PORT`
`MAIL_SERVER`
`MAIL_PORT`
`MAIL_USERNAME`
`MAIL_PASSWORD`
`MAIL_USE_TLS`
`MAIL_USE_SSL`

for setup the email service, you must configure email and app password in .env, for get the app password you can stup 2fa first in your email and inside 2fa on bottom you get the app password

export FLASK_APP on windows
```bash
Expand All @@ -54,8 +65,16 @@ or on (mac/linux)
```bash
export FLASK_APP=main.py
```
run the migration
```bash
flask db upgrade
```
Run the development server.
```bash
flask run
```
or
```bash
flask --app=main.py run
```
Access the website locally at http://localhost:5000.

0 comments on commit fa01eed

Please sign in to comment.