Please download Python 3.8.3 and on your PC (If you have it, please skip it).
- Open your terminal and Go to your directory.
$ cd your_directory_name
- Clone the project with the following command.
$ git clone https://github.com/toma1031/adoptanimals.git
$ cd adoptanimals
- Do following command at terminal for installing library.
$ pip install -r requirements.txt
- Install MySQL.
$ brew install mysql
- Start MySQL.
$ mysql.server start
Starting MySQL
. SUCCESS!
- Create Database.
$ mysql -u root
mysql> create database adopt_animals;
- Install mysqlclient.
$ pip install mysqlclient
- Do migartion.
$ python manage.py makemigrations
$ python manage.py migrate
- In the project directory, you can run.
$ python manage.py runserver
- Runs the app in the development mode.
Open http://127.0.0.1:8000/ to view it in your browser.