These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You'll need to have the following installed:
- Node.js (v14.18.0, v16.14.0, or >=18.0.0)
- Yarn
- Docker & Docker Compose
-
Install the dependencies: cd secondbrain
yarn install
-
Set up the Docker environment:
docker-compose up
This will create the PostgreSQL and Redis instances, as defined in docker-compose.yml. -
Set up the database: Edit prisma/.env and replace DATABASE_URL with your PostgreSQL connection string.
-
Generate Prisma client:
yarn prisma generate
- Run the migrations:
yarn prisma migrate dev --name init
- Seed the database:
yarn prisma db seed --preview-feature
- Start the development server:
yarn dev
-
Open http://localhost:3000 in your browser to see the app.
-
Open http://localhost:3000/api/graphql to see the GraphQL playground.
-
Run prisma studio to see the database:
yarn prisma studio
This project is licensed under the MIT License - see the LICENSE.md file for details
- Prisma
- Next.js
- GraphQL
- Apollo
- Google Cloud Platform
- Docker
- Redis
- PostgreSQL
- Built with love by [Justin McIntosh]