To setup a demo application, you can run the following command:
curl -s https://raw.githubusercontent.com/workarea-commerce/workarea/master/demo/install | bashThis will run a script that does the following:
- downloads a
docker-compose.ymlfile - starts containers for the application and required services
- seeds the database
- starts the application server
It requires you have Docker installed and running. Once complete, you can visit http://localhost:3000 to view your app. The seed data provides an admin user with an email/password of user@workarea.com/w0rkArea!. You can access the admin at http://localhost:3000/admin.
To stop the application, run:
docker-compose downIf you want to restart an existing demo app, navigate to the workarea-demo/ directory and run:
docker-compose upTo reseed your application, ensure your containers are up, and run:
docker-compose exec -T workarea_demo bin/rails db:seedIf any of the Docker containers fail to start make sure you do not have any other services or containers running that are using the same ports.
Workarea services use ports 27018, 9201, 6389, and 3000.
If http://localhost:3000 seems sluggish, any services fail to start, or the application is completely unresponsive, you might need to increase Docker's memory allocation within Docker's advanced preferences. We suggest at least 4GB.