One Line Story
One Line Story is a collaborative storytelling platform where players contribute one sentence at a time to a communal story.
Prerequisites
Before you begin, make sure you have the following prerequisites installed on your system:
- Docker
- Docker Compose
- Node.js
- npm
Installation
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
Initial Mock Users
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 (
ross.geller@email.com
)
- Admin (
- Monica Geller (
monica.geller@email.com
) - Chandler Bing (
chandler.bing@email.com
) - Joey Tribbiani (
joey.tribbiani@email.com
) - Phoebe Buffay (
phoebe.buffay@email.com
) - Rachel Green (
rachel.green@email.com
)
Troubleshooting Dependencies
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