mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-27 22:24:14 +00:00
feat: needs fixing miis
This commit is contained in:
parent
781682e24e
commit
4275f710b0
9 changed files with 100 additions and 38 deletions
|
|
@ -4,36 +4,9 @@ This is probably outdated.
|
|||
|
||||
Welcome to the TomodachiShare development guide! This project uses [pnpm](https://pnpm.io/) for package management, [Next.js](https://nextjs.org/) with the app router for the backend, [Vite with React](https://vite.dev/) for the frontend, [Prisma](https://prisma.io) for the database, [TailwindCSS](https://tailwindcss.com/) for styling, and [TypeScript](https://www.typescriptlang.org/) for type safety.
|
||||
|
||||
## Getting started
|
||||
|
||||
To get the project up and running locally, follow these steps:
|
||||
|
||||
```bash
|
||||
$ git clone https://github.com/trafficlunar/tomodachi-share
|
||||
$ cd tomodachi-share
|
||||
$ pnpm install
|
||||
```
|
||||
|
||||
Prisma types are generated automatically, however, if you changed the schema or need to trigger a manual refresh:
|
||||
|
||||
```bash
|
||||
# Generate Prisma client types
|
||||
$ pnpm --filter backend prisma generate
|
||||
|
||||
# Or, if you've added new database properties
|
||||
$ pnpm --filter backend prisma migrate dev
|
||||
$ pnpm --filter backend prisma generate
|
||||
```
|
||||
|
||||
I recommend opting out of Next.js' telemetry program but it is not a requirement.
|
||||
|
||||
```bash
|
||||
$ pnpm --filter backend exec next telemetry disable
|
||||
```
|
||||
|
||||
## Environment variables
|
||||
|
||||
You'll need a PostgreSQL database and Redis database. I would recommend using [Docker](https://www.docker.com/) to set these up quickly. Just create a `docker-compose.yaml` with the following content and run `docker compose up -d`:
|
||||
This step needs to be done before installing packages. You'll need a PostgreSQL database and Redis database. I would recommend using [Docker](https://www.docker.com/) to set these up quickly. Just create a `docker-compose.yaml` with the following content and run `docker compose up -d`:
|
||||
|
||||
```yaml
|
||||
services:
|
||||
|
|
@ -85,6 +58,33 @@ For GitHub, navigate to your profile settings, then 'Developer Settings', and cr
|
|||
|
||||
Google is annoying so I'm not explaining it.
|
||||
|
||||
## Getting started
|
||||
|
||||
To get the project up and running locally, follow these steps:
|
||||
|
||||
```bash
|
||||
$ git clone https://github.com/trafficlunar/tomodachi-share
|
||||
$ cd tomodachi-share
|
||||
$ pnpm install
|
||||
```
|
||||
|
||||
Prisma types are generated automatically, however, if you changed the schema or need to trigger a manual refresh:
|
||||
|
||||
```bash
|
||||
# Generate Prisma client types
|
||||
$ pnpm --filter backend prisma generate
|
||||
|
||||
# Or, if you've added new database properties
|
||||
$ pnpm --filter backend prisma migrate dev
|
||||
$ pnpm --filter backend prisma generate
|
||||
```
|
||||
|
||||
I recommend opting out of Next.js' telemetry program but it is not a requirement.
|
||||
|
||||
```bash
|
||||
$ pnpm --filter backend exec next telemetry disable
|
||||
```
|
||||
|
||||
## Development Server
|
||||
|
||||
The frontend and backend need to be ran simulatenously, therefore you need two separate terminals.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue