-
Notifications
You must be signed in to change notification settings - Fork 3
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 postgresqlor download it here.If you prefer to use a database management interface, you can install postgres.app.
-
Install Redis
Usebrew install redisor download it here. -
Create the Database
Create the database db owned by dbuser (refer toPOSTGRESQL_DB&POSTGRESQL_USERkeys in the.envfile). -
Create Tables
Use the file./create-tables.sqlto create the tables by running:psql -h localhost -U dbuser -d db -f path/to/create-tables.sqlTo verify the created tables, run:
psql -h localhost -U dbuser -d dbAnd once connected, list the tables with
\dt -
Start the Redis server Start the Redis server with:
brew services start redisVerify that Redis is running
redis-cli pingIf Redis is running, it should return
PONG. -
Run the solution Finally, run the solution with:
npm run dev
Framna Docs is built with β€οΈ by Framna in Denmark. Oh, and we are hiring π€