MacOS Sierra 10.12.6 Odoo 10.0 Development Environment Configuration

Source: Internet
Author: User
Tags postgres database virtual environment virtualenv git clone pycharm community edition

Refer to some of the online tutorials, will be the final process to record, which need some of the procedures, I have put in Baidu network disk:

Https://pan.baidu.com/s/1boKHSTL

1. Erase disk Install MacOS Sierra 10.12.6:

Make MacOS Installation boot disk see: http://www.iplaysoft.com/macos-usb-install-drive.html

2. Install MacOS command line Tools:

Open the Mac Terminal Program, Command Line window input git Enter, the system will be prompted to command lines Tools, including version management software Git 2.11.0, follow the prompts to download the installation.

3, installation Nodejs:

To Nodejs official website: https://nodejs.org/en/#download下载安装v6.11.2LTS, including NPM Package Manager 3.10.10

4. Install Postgres database:

Download postgres-2.0.4.dmg:http://postgresapp.com, install start, Initialize, double-click the Postgres database icon, open the database command line, build odoo database User:

Create user "Odoo" with password ' Odoo ' createdb;

Notice the difference between the two quotes in the preceding command:

5, install Pip 9.0.1, open the Mac Terminal Program, Command line window input:

sudo easy_install pip

6, install the virtual Python environment virtualenv 15.1.0, continue in the MAC Terminal Program Command Line window input:

sudo pip install virtualenv

7. Download Odoo 10.0 Source code:

Create the Odoo-dev directory under directory ~ and pull the Odoo source to ~/odoo-dev/odoo:

CD ~mkdir ODOO-DEVCD Odoo-dev
mkdir Odoo
CD Odoogit clone Https://github.com/odoo/odoo.git

The last git clone, need to perform a long time, from GitHub download more than 2 g of source code, need high-speed network connection, you can also use the following command to download only 10.0 branch of the latest source.

git clone https://github.com/odoo/odoo.git--depth 1--branch 10.0--single-branch

8. Create a virtual Python environment to rely on for Odoo to run:

CD ~mkdir ODOO-DEVCD odoo-devmkdir env.odoo10virtualenv env.odoo10

9. Download Odoo Dependent library file:

First, switch to the Odoo10 Python virtual environment:

CD ~/odoo-devsource Env.odoo10/bin/activate

Note the command-line prompt changes, most front-end (ENV.ODOO10) ..., and then, run the following command to pull the support library:

Pip Install-r odoo/odoo/requirements.txt

This operation needs to download a lot of files, to wait a little longer.

10. Install LESSC Support Library:

NPM install-g Less Less-plugin-clean-css

11. Prepare the Odoo configuration file:

Copy the odoo.conf to the Odoo-dev/odoo directory from the Odoo-dev/odoo/odoo/debian directory, open it with a text editor TextEdit, and modify it as follows:

[Options]; This was the password that allows database operations:; ADMIN_PASSWD = Admindb_host = 127.0.0.1db_port = 5432db_user = Odoodb_password = Odooaddons_path = Odoo/odoo/addons

12. Finally, it's time to start Odoo:

CD ~/odoo-devsource env.odoo10/bin/activateodoo/odoo/odoo-bin-c odoo/odoo.conf

Open the Safari browser and visit Localhost:8069,odoo to create a database page.

13. Download and install Python development Tools Pycharm Community Edition: https://www.jetbrains.com/pycharm/

Pending update

14. Download and install the database management tool pgadmin4:https://www.pgadmin.org/download/pgadmin-4-macos/

Pending update

MacOS Sierra 10.12.6 Odoo 10.0 Development Environment Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.