Welcome,
This is the Code Institute student template for Codeanywhere. If you are using Gitpod then you need this template instead. We have preinstalled all of the tools you need to get started. It's perfectly ok to use this template as the basis for your project submissions.
You can safely delete this README.md file, or change it for your own project. Please do read it at least once, though! It contains some important information about Codeanywhere and the extensions we use. Some of this information has been updated since the video content was created. The last update to this file was: July 26th, 2023
To run a frontend (HTML, CSS, Javascript only) application in Codeanywhere, in the terminal, type:
python3 -m http.server
A button should appear to click: Open Preview or Open Browser.
To run a frontend (HTML, CSS, Javascript only) application in Codeanywhere with no-cache, you can use this alias for python3 -m http.server
.
http_server
To run a backend Python file, type python3 app.py
, if your Python file is named app.py
of course.
A button should appear to click: Open Preview or Open Browser.
In Codeanywhere you have superuser security privileges by default. Therefore you do not need to use the sudo
(superuser do) command in the bash terminal in any of the lessons.
To log into the Heroku toolbelt CLI:
- Log in to your Heroku account and go to Account Settings in the menu under your avatar.
- Scroll down to the API Key and click Reveal
- Copy the key
- In Codeanywhere, from the terminal, run
heroku_config
- Paste in your API key when asked
You can now use the heroku
CLI program - try running heroku apps
to confirm it works. This API key is unique and private to you so do not share it. If you accidentally make it public then you can create a new one with Regenerate API Key.
Happy coding!