5. Get yourself a working local copy of the website. In other words, get yourself some [a-eskwadraat.nl](https://a-eskwadraat.nl/).
5. Get yourself a working local copy of the website. In other words, get yourself some [a-eskwadraat.nl](https://a-eskwadraat.nl/).
* Clone the repository: git clone git@gitlab.com:iba-aes/webcie/unchained.git
* Clone the repository: git clone git@gitlab.com:iba-aes/webcie/unchained.git
* We use Pipenv to keep track of packages: `pip3 install --user pipenv`. In the directory of the git clone, run `pipenv sync` to install or update all packages in Pipfile.lock. Avoid using `pipenv install`, which also syncs the packages but should mainly be used to add packages to the lockfie. To run pipenv commands, the user can prepend pipenv commands with `pipenv run`. Alternatively, the user can run the command `pipenv shell` to use Pipenv for all commands.
* We use Pipenv to keep track of packages: `pip3 install --user pipenv`. In the directory of the git clone, run `pipenv sync` to install or update all packages in Pipfile.lock. Avoid using `pipenv install`, which also syncs the packages but should mainly be used to add packages to the lockfie. To run pipenv commands, the user can prepend pipenv commands with `pipenv run`. Alternatively, the user can run the command `pipenv shell` to use Pipenv for all commands.
* Install the NPM packages: `npm install`. This is mostly for Webpack and for packages used in the Typescript files. Now update the javascript files so the website can use those: `npx webpack`.
* Use `py manage.py runserver` to run the server on the local host at port 8000. If you receive a warning about database migrations, use `py manage.py migrate` to perform database migrations. Use `py manage.py` to show all commands that can be issued.
* Use `py manage.py runserver` to run the server on the local host at port 8000. If you receive a warning about database migrations, use `py manage.py migrate` to perform database migrations. Use `py manage.py` to show all commands that can be issued.