-
Notifications
You must be signed in to change notification settings - Fork 2
Running the App Locally
After setting the .env
file with the proper keys and installing the project dependencies, follow these steps to connect your web app to PostgreSQL:
-
Install PostgreSQL
Usebrew install postgresql
or download it here.If you prefer to use a database management interface, you can install postgres.app.
-
Install Redis
Usebrew install redis
or download it here. -
Create the Database
Create the database db owned by dbuser (refer toPOSTGRESQL_DB
&POSTGRESQL_USER
keys in the.env
file). -
Create Tables
Use the file./create-tables.sql
to create the tables by running:psql -h localhost -U dbuser -d db -f path/to/create-tables.sql
To verify the created tables, run:
psql -h localhost -U dbuser -d db
And once connected, list the tables with
\dt
-
Start the Redis server Start the Redis server with:
brew services start redis
Verify that Redis is running
redis-cli ping
If Redis is running, it should return
PONG
. -
Run the solution Finally, run the solution with:
npm run dev
Framna Docs is built with β€οΈ by Shape in Denmark. Oh, and we are hiring π€