To run and install Drawtopia's on your Windows or Mac device, follow these instructions:
- Install the requirements
- Run
git clone https://github.com/mianjoto/drawtopia
- Open the cloned repository and run
npm install
- Initialize the database (refer to Initializing the database)
- Set up the environment variables (refer to Setting up environment variables)
- In the repository, run
npm run devStart
- Open
http://localhost:3000/
in your browser - Draw away! :)
Drawtopia requires the following applications to work:
To initialize the database using MySQL, follow these instructions:
- Install MySQL Workbench v8.0.33 (Download)
- Continue with installation with default settings
- When prompted to enter a password for the
root
user, enter a simple password you'll remember, like"abc123"
- Open MySQL Shell and run the following commands:
\sql \connect localhost -u root # then enter your the password you entered in step 3 CREATE DATABASE drawtopia;
- Run
npm run databaseInit
- Make sure to set the appropriate database-related environment variables either locally in your shell or in a new
.env
file in the root directory. Refer to the Setting up environment variables section if you need guidance
To set up environment variables, refer to the instructions in the .env.sample file. This file provides a sample for the .env file required to run the database and server.