One Line Story is a collaborative storytelling platform where players contribute one sentence at a time to a communal story.
Before you begin, make sure you have the following prerequisites installed on your system:
- Docker
- Docker Compose
- Node.js
- npm
To set up and run this app, follow these steps:
-
Clone this repository to your local machine.
-
Duplicate the PROJECT_ROOT_DIR/docker/.env.example file and rename it to ".env.[prod|dev]".
-
Customize Environment Variables (Optional): Open the newly created .env.[prod|dev] file and modify the environment variables as needed.
-
Navigate to the project directory and run the following command based on your needs:
- For the production environment:
npm start
(uses PROJECT_ROOT_DIR/docker/.env.prod) - For the development environment:
npm run dev
(uses PROJECT_ROOT_DIR/docker/.env.dev)
- For the production environment:
This app has been tested on the following platforms:
- Windows Subsystem for Linux (WSL)
- Linux
When you first get the app up and running, a set of mock users are prepared to help you get started. All users are configured with the password 1234
. Here's the list:
- Ross Geller - Admin (
[email protected]
) - Monica Geller (
[email protected]
) - Chandler Bing (
[email protected]
) - Joey Tribbiani (
[email protected]
) - Phoebe Buffay (
[email protected]
) - Rachel Green (
[email protected]
)
If you encounter issues with installing new dependencies in your project, you can use the following script to change ownership of directories:
make sure the script is executable:
chmod +x PROJECT_ROOT_DIR/scripts/change-ownership.sh
then run the script:
PROJECT_ROOT_DIR/scripts/change-ownership.sh