This is a trial project at which you can list your favorite movies watched or not watched and or etc.
این یک پروژهی شخصی است که در آن میتوانید از فیلمهای مورد علاقهتان، فیلمهایی که دیدهاید، فیلمهایی که میخواهید ببینید و... لیست تهیه کنید.
در این پروژه از تکنولوژیهای زیر استفاده میشود:
- پایتون
- جنگو
- مای اسکوئل
- Install python3, pip3, virtualenv, MySQL in your system.
- Clone the project
git clone https://github.com/amirdashtii/movielist-back && cd movielist-back
- In the movielist folder, rename the
config.py.sample
toconfig.py
and do proper changes. - db configs are in config.py. Create the db and grant all access to the specified user with specified password.
- Create a virtualenv named venv using
virtualenv -p python3 venv
- Connect to virtualenv using
source venv/bin/activate
- From the project folder, install packages using
pip install -r requirements.txt
- Now environment is ready. Run it by
python manage.py makemigrations
- Continue with
python manage.py migrate
- Lastly
python manage.py runserver
Note: this is just a sample. You have to find your own system's commands.
CREATE DATABASE movielist;
USE movielist;
CREATE USER 'movielist'@'localhost' IDENTIFIED BY 'test' PASSWORD NEVER EXPIRE;
GRANT ALL PRIVILEGES ON movielist.* TO 'movielist'@'localhost';