Commit be3a20c0dea922cec4191907b93f3f3f3fb14074

Change README
  • README.md 43 ----------+++++++++++++++++++++++++++++++++
  • Diff rendering mode:
  • inline
  • side by side

README.md

49using these APIs, provided they have a valid access token.49using these APIs, provided they have a valid access token.
5050
5151
52Installing
53----------
52Pre-requisites
53--------------
5454
55The swtstore application is written in Python and uses a relational database.55The swtstore application is written in Python and uses a relational database.
5656
62For more information on supported databases see62For more information on supported databases see
63[here](http://docs.sqlalchemy.org/en/rel_0_9/dialects/index.html).63[here](http://docs.sqlalchemy.org/en/rel_0_9/dialects/index.html).
6464
65___ Once you are sure you have Python and a relational database (like
66MySQL/Postgresql etc.) installed. You can go ahead and follow these steps:___
65Also, make sure you have [pip](https://pip.pypa.io/en/latest/) installed, as
66swtstore depends of few external python packages.
6767
68**NOTE: Make sure you have the pre-requisites installed before following the
69installation steps.**
70
71
72Installing
73----------
74
68* Clone the repository from [https://git.pantoto.org/sweet-web/sweet-web-engine](https://git.pantoto.org/sweet-web/sweet-web-engine)75* Clone the repository from [https://git.pantoto.org/sweet-web/sweet-web-engine](https://git.pantoto.org/sweet-web/sweet-web-engine)
69 OR you can download the
70 code from the same link.
7176
72* It is strongly recommended to do the installation inside a virtual environment.
77 > $ git clone --recursive https://git.pantoto.org/sweet-web/sweet-web-engine.git
78
79 If you have already cloned the repo, and then reading this README, you have
80 to get the submodules. Run this from the top-level of this repo:
81
82 > $ git submodule init
83 > $ git submodule update
84
85
86* It is recommended to do the installation inside a python virtual
87 environment.
88 For deploying on a server, it depends on how you have setup your server
89 environment.
73 If you think, you know what you are doing and don't need the virtual90 If you think, you know what you are doing and don't need the virtual
74 environment, you can skip to the next step.
91 environment, you can skip to the next step.
92
75 Initialize a python virtual environment using `virtualenv` in the same directory93 Initialize a python virtual environment using `virtualenv` in the same directory
76 where you cloned the repository in the above step. Now, activate the94 where you cloned the repository in the above step. Now, activate the
77 environment95 environment
100100
101* Run the setup.py script to install `` python setup.py install ``101* Run the setup.py script to install `` python setup.py install ``
102102
103You're done installing swtstore. Now you need to configure it to run.
104103
104You're done with the installation step.
105105
106Now you need to configure swtstore to run it correctly.
107
108
106Configure swtstore109Configure swtstore
107------------------110------------------
108111
112* Make sure you have configured the user management module with correct values.
113
109* Copy the contents of ``sample_config.py`` inside the ``swtstore`` directory114* Copy the contents of ``sample_config.py`` inside the ``swtstore`` directory
110 into ``config.py`` inside ``swtstore`` directory itself.115 into ``config.py`` inside ``swtstore`` directory itself.
111116
112 Assuming you are using a *-nix based system, and you are in the root directory
117 Assuming you are using a \*-nix based system, and you are in the root directory
113 of the codebase,118 of the codebase,
114119
115 `` $ cp swtstore/sample_config.py swtstore/config.py``120 `` $ cp swtstore/sample_config.py swtstore/config.py``