Author: Syafiq Abdillah Umarghanis
This homework project doesn't fullfil technical requirement no 7 "Use SQLite" because Heroku doesn't support SQLite due to its "disk backed storage" while Heroku server's disk storage will be cleared periodically. Source: https://devcenter.heroku.com/articles/sqlite3. For the alternative, I use PostgreSQL as the relational database. But worry not, the database is integrated whether you use the live demo version of trying to install this project locally on your machine.
You can access the live demo version at
https://dmp-konvergenai.herokuapp.com
username: user1
password: user1
- Python 3.8.3
- Git 2.27.01
- Go to certain directory or make a new one. Let's call it DMP
mkdir DMP && cd DMP
- Clone this repo to DMP
git clone https://github.com/syafiqabdillah/dmp-backend.git backend
- Download .env file that has been sent via email
- Go to DMP directory
- Go to backend directory
cd backend
- Install virtualenv library for python (if you don't have any similar library)
python install virtualenv
- Create a new environtment called venv
virtualenv venv
- Get into the virtual environtment
source venv/bin/activate
for Linux & MacOS
venv\Scripts\activate
for Windows - Install all dependencies
pip install -r requirements.txt
- Copy paste .env file for backend (sent via email) to backend directory
- Run the server
uvicorn main:app --reload
- Your server is running on port 8000. Open http://localhost:8000 in your browser to make sure that it is installed properly.
Any questions or difficulties? Don't hesitate to ask me by posting new issue in this repo or sending me emails at [email protected]