Optimize your garden plan, and learn about permaculture in the process! powerplant provides intelligent planting suggestions which maximize positive crop interaction for the mutual benefit of all your crops. It also helps you track the progress of your garden with planting schedules and customizable tasks.
Currently in development. A good amount of research and specification work has been done the basic functionalities have been implemented and the minimum viable product can be used here.
To start developing, you need to set up the development environment. This includes: NodeJS and MongoDB or Docker with MongoDB
- Install Node you should install version >9.4.0
- Install Docker
- Install the Mongo Docker image by running
docker pull mongo
- Clone the git repository
- Run
npm install
to get all packages installed - Generate a private key and and set it for JWT_SECRET and get a Google Geocode API key and set is as GOOGLE_GEOCODE_API_KEY into secrets.js (see secrets.example.js)
- Start the Docker image by running
npm run mongo
- Run 'npm start'
- Run the Firebase data migration by running
npm run migrate
- At this point, everything should be set up. Run
npm test
to make sure everything is working, andnpm start
to begin serving the website onhttp://localhost:8080
- Done!
The project may not run properly after reboot because it fails to
connect to the database. Running docker restart pp_main
fixes the
issue.
For Production you need an installed MongoDB and a user that has access to a db in it ("readWrite", "dbAdm"). Also you need Node 6.x installed on the system.
git clone https://github.com/Ecohackerfarm/powerplant.git
cd powerplant && npm install --only=production
- Setup Secrets in secrets.js:
- generate a private key (long random number) and set it for
JWT_SECRET
- get a Google Geocode API key and set is as
GOOGLE_GEOCODE_API_KEY
- set all
DATABASE_
variables - set PP_PORT for the port you want powerplant to run
- generate a private key (long random number) and set it for
npm run production
npm run migrate_production
- Done!
If you have any problems to set it up, send us an email to franz}at{ecohackerfarm.org