Using Django on the back-end and HTML, CSS, JavaScript, React and Bootstrap on the front-end, I have created a project that allows users to play a game of hangman. The user can register, login, logout, keep track of their progress, play hangman, have friends and chat. I made this project after completing CS50 web development with Python and JavaScript.
- π game : root folder for game app
-
π static/game : Contains static files like image files, css files and JS files
- π index.js : contains javascript code for the django project
- π inherit.css : CSS style file for the django project
- π register.css : CSS style file for the django project
- There are also image files present here that is loaded in my html files when required.
-
π templates/game : Contains HTML files
- π inherit.html : This is the layout html file that other html files inherit from
- π index.html : HTML file for the main view where I have created various divs whose views are controlled by JavaScript written in index.js
- π login.html : HTML for the login view
- π profile.html : HTML for an individual user where other user can follow them
- π false.html : HTML for a user that is not in our database but was searched for following
- π register.html : HTML for the register view
-
π model.py : Contains the models for the database which is in SQLite
-
π urls.py : Contains the routes for the game app and also the JSON REST API routes
-
π views.py : Contains the functions that render views for this app
-