Skip to content
gregorylburgess edited this page May 7, 2013 · 10 revisions

To install a local instance of Megawatt:

1. Install VirtualEnv

2. Create a VirtualEnv wrapper

$ mkvirtualenv megawatt

$ workon megawatt

3. Install Django

4. Install Postgres

5. Create a Postgres DataBase

note: this usually requires a user to run the psql command.

See this article for troubleshooting or first time setup.

6. Set the DATABASE_URL environment variable

$ export DATABASE_URL=postgres://[db_user]:[db_password]@localhost:5432/[db_name]

7. Clone the Megawatt repository

$ git clone https://github.com/gregorylburgess/megawatt.git

8. Run the Server

$ cd megawatt

$ python manage.py runserver

Clone this wiki locally