- Install git, postgresql version >= 9.4, virtualenv and Node.js version >= 6 in your computer, if you don't have it already. Please check that the python version you are using for the project is 2.7.x. If you are having trouble with postgresql on Windows check this link postgresqlhelp.
- Get the source code on your machine via git
If you have not added
git clone [email protected]:Cloud-CV/CloudCV.git cloudcv
ssh
keys to your GitHub account then get the source code by running the following commandgit clone https://github.com/Cloud-CV/CloudCV.git cloudcv
- Create a python virtual environment and install python dependencies.
cd cloudcv virtualenv venv source venv/bin/activate # run this command everytime before working on project pip install -r requirements/dev.txt
- Rename
settings/dev/settings.sample.py
assettings/dev/settings.py
and change credentials insettings/dev/settings.py
Use your postgres username and password for fieldscp settings/dev/settings.sample.py settings/dev/settings.py
USER
andPASSWORD
insettings/dev/settings.py
file. - Create an empty postgres database and run database migration.
sudo -i -u (username) createdb cloudcv python manage.py migrate --settings=settings.dev.settings
- That's it. Now you can run development server at http://127.0.0.1:8000 (for serving backend)
python manage.py runserver --settings=settings.dev.settings
- Open a new terminal window with node(>=6) and ruby(gem) install on your machine and type
If you running npm install behind a proxy server, use
cd frontend sudo npm install -g yarn yarn install
npm config set proxy http://proxy:port
- Now to connect to dev server at http://127.0.0.1:6003 (for serving frontend)
yarn run dev
- Install git, postgresql; tested with postgresql installer by bigsql version >= 9.4, and Node.js version >= 6 in your computer & python 2.7.x , if you don't have it already.
- Get the source code on your machine via git
If you have not added
git clone [email protected]:Cloud-CV/CloudCV.git cloudcv
ssh
keys to your GitHub account then get the source code by running the following commandgit clone https://github.com/Cloud-CV/CloudCV.git cloudcv
- Open a command prompt and Install python dependencies.
cd cloudcv pip install -r requirements\dev.txt
- Rename
settings/dev/settings.sample.py
assettings/dev/settings.py
and change credentials insettings/dev/settings.py
Use your postgres username and password for fieldscopy settings\dev\settings.sample.py settings\dev\settings.py
USER
andPASSWORD
insettings/dev/settings.py
file. - Create an empty postgres database and run database migration.
Start Postgresql server Open psql prompt createdb cloudcv In the command prompt, python manage.py migrate --settings=settings.dev.settings
- That's it. Now you can run development server at http://127.0.0.1:8000 (for serving backend),
python manage.py runserver --settings=settings.dev.settings
- Open a new terminal window with node(>=6) and ruby(gem) install on your machine and type
If you running npm install behind a proxy server, use
cd frontend npm install -g yarn yarn install
npm config set proxy http://proxy:port
- Now to connect to dev server at http://127.0.0.1:6003 (for serving frontend)
yarn run dev
...
- Install Docker Desktop [https://www.docker.com/products/docker-desktop/].
- From the project directory, start up the application by running the given command, compose pulls all the images required ,builds an image for the code, and starts the services. The code is statically copied into the image at build time.
docker compose up
- Enter http://localhost:8000/(for serving backend) in a browser to see the application running.
http://localhost:8000/
- Stop the application, either by running docker compose down from within your project directory in the second terminal, or by hitting CTRL+C in the original terminal where you started the app.
...
If you are interested in contributing to CloudCV, follow our contribution guidelines.