Running the Application Manually
Manual Install
Code Thesaurus is tested to run on at least Python 3.10, though it may work in earlier 3.x versions. It will not run in Python 2.x.
If you run python --version and it shows Python 2.x but you know you have Python 3.x installed, you may need to
suffix all python and pip commands with 3, e.g. pip3 and python3, or follow the process for making Python
3 your default Python installation.
Manual Install - Windows
- Clone the project with git clone https://github.com/codethesaurus/codethesaur.us.git
- Switch into to the directory with cd codethesaur.us
- Check to see if Python 3.x is installed with python --versionorpython3 --version. If Python 3.x isn't installed, visit https://www.python.org/downloads/windows/ or if you have Chocolatey, install it withchoco install python
- Install Python's virtual environment venv with the command pip3 install virtualenv
- To set up new virtual environment, run virtualenv venv
- To activate virtual environment, run venv\Scripts\activate.bat
- Run pip install -r requirements.txtto install all the needed dependencies
- Then run python manage.py runserverto start the server
- In your browser, visit http://localhost:8000/ or http://127.0.0.1:8000/
- Press CTRL+C in the terminal to stop the server
- To deactivate the virtual environment, run venv\Scripts\deactivate.bat
Manual Install - Mac
Note: These instructions only work on Intel-based Macs. For the new M1 Macs, the basic installation process is about the same, but you may need to review directions on Homebrew's website to see how to properly install Python. We hope to update these directions soon.
- Check to see if Python 3.x is installed with python --versionorpython3 --version. If Python 3.x isn't installed, install it withbrew install python
- Clone the project with git clone https://github.com/codethesaurus/codethesaur.us.git
- Switch into to directory with cd codethesaur.us
- Run pip3 install virtualenv
- To set up new virtual environment, run virtualenv venv
- To activate virtual environment, run source venv/bin/activate
- Run pip3 install -r requirements.txtto install all the needed dependencies
- Then run python3 manage.py runserverto start the server
- In your browser, visit http://localhost:8000/ or http://127.0.0.1:8000/
- Press CTRL+C in the terminal to stop the server
- To deactivate the virtual environment, run deactivate
Manual Install - Linux
Note: Instructions will often vary greatly depending on what distribution of Linux you are running. For more info, please search online for instructions on using your distribution's package manager.
- Check to see if the system default python --versionworks. If the returned text is not python 3.x then try usingpython3 --version. If bothpythonandpython3are installed, use whichever is the latest version.
- You may need to install PostgreSQL as well. Use your package manager (often apt,apt-get, orpacman) to install thepostgresqlpackage.
- Install venv for virtual environment with sudo apt install -y python3-venv
- Clone the project with git clone https://github.com/codethesaurus/codethesaur.us.git
- Switch into to directory with cd codethesaur.us
- Set up the Python virtual environment with python3 -m venv venv
- Activate the virtual environment with source venv/bin/activate
- Install the dependencies with pip install -r requirements.txt
- Then run the app with python3 manage.py runserver
- In your browser, visit http://localhost:8000/ or http://127.0.0.1:8000/
- Press CTRL+C in the terminal to stop the server
- To deactivate the virtual environment, run deactivate
Install Issues?
If you have issues with trying to run Code Thesaurus, feel free to reach out to us by the methods on the docs home page.
If you spot errors and want to help correct them, you are welcome to file issues or edit this page!