A PERN fullstack web app to help dungeon masters organise their D&D campaign
- Clone the repository
- Download and install Node
- Install PostgreSQL. See this youtube video for instructions
- Using the terminal, navigate to the repository directory
- Install Nodemon globally
npm i -g nodemon
- Navigate to server folder
cd server
- Install dependecies
npm install
- Rename
sample.dotenv
to.env
and enter your own details. NOTE: Do not change thedatabase
variable - Rename
config.sample.sh
toconfig.sh
and change "myPostgresqlPassword" to your own password
Optional
- Download and install Postman for testing
- On the first install use
npm run con-dev
. The will create a fresh database and start the server. WARNING If using this command after the first install, any data in thedmgoogle
database will be deleted. USE WITH CARE - To start the server use
npm run server
- The backend server will be running on
http://localhost:5000
- In a separate terminal window or tab
- From the root directory navigate to the client directory
cd client
- Install dependecies
npm install
- In the client directory run
npm run start
- When ready the browser should open automatically, but if not navigate to
http://localhost:3000
in your browser
- Project adapted from Andrew Bateman's PERN stack repository pern-stack-auth