We'll be working with a complete Shakespeare bot with a frontend and backend. Go ahead and navigate to the shakespearebot-complete directory. In the following steps, we'll set up our application, import our data, and interact with the frontend:
- First, run the Django migrations with python manage.py migrate and create a user with python manage.py createsuperuser.
- Start the server with python manage.py runserver.
- Log in at http://localhost:8000/admin.
- Navigate to http://localhost:8000/admin/bot/text/ and import the Shakespeare_text.csv file (this will take some time).
- While this is importing, we can go ahead and check our frontend with the cd react-frontend command.
- Install our dependencies with yarn install.
- Start the server with yarn start.
- Now, if you navigate to http://localhost:3000, we should see our frontend:
Figure 14.5 - Our complete Shakespearebot
- Stop the development server with Ctrl + C.
- Execute yarn build.
- When the import is complete,...