Intro
This tutorial will quickly teach you how to start coding your first website in a windows environment!
Prerequisites
First thing, you'll need a few applications installed. Go to each of the links below and install them.
- Docker download and install the windows version
- Python download and install the latest version
- Cookiecutter
- Open a command prompt by clicking the windows icon and search
cmd
- Type in
pip install cookiecutter
and hit enter
- VSCode download and install
Cookie Cutter Django
- Open a command prompt
- Type in
mkdir projects
and hit enter
- Type in
cd projects
and hit enter
- Type in
cookiecutter https://github.com/cookiecutter/cookiecutter-django
and hit enter
- Follow and answer the prompts. If you don't know what to answer, hit enter which will submit the default)
- Type in
docker-compose -f local.yml up
and hit enter
- Open a web browser and go to
localhost:8000
- you should see your first website
Edit Your Website
- Open a windows explorer
- Go to your projects folder
- Right click the new project you created and click open with VSCode
- Navigate to the home.html file
- Type in
<div>Hello World</div>
and save
- Check your website. You should now see "Hello World" on the home page.