-
Notifications
You must be signed in to change notification settings - Fork 75
Installation_guide
The average time to setup Cosmos-Search locally has been reported to be π 2 minutes. Follow the following steps to get started instantly:
-
Clone this wonderful repository in your local machine π₯οΈ :
$ git clone https://github.com/OpenGenus/cosmos-search.git
-
Go inside code π‘ :
$ cd cosmos-search
-
Setup a virtual environment ποΈ :
$ virtualenv -m python3 env_name
OR$ python3 -m venv env_name
-
Activate the virtual environment π :
$ source env_name/bin/activate
The virtual environment can be deactivated with the
deactivate
command. -
Install local dependencies π οΈ :
pip install -r requirements.txt
-
Copy the .env.example file to .env and supply values for the required variables using the following command πββοΈ :
cp .env.example .env
-
Collect static files using π :
$ python manage.py collectstatic
-
Migrating files using π¨ :
$ python manage.py migrate
-
Run Cosmos-Search π :
$ python manage.py runserver
-
View this wonderful search engine built for you π :
localhost:8000
To run the web app in Debug mode set the DEBUG environment variable.
In Linux, run the export DEBUG=True
command in the terminal.
Get in touch with us at Slack or ask us at our Discourse forum.