Skip to content

A cheap wikipedia rip off that uses Remix under the hood.

Notifications You must be signed in to change notification settings

kevinleiba/pole-pedia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pole Pedia

Pole Pedia

A cheap wikipedia rip off that uses Remix under the hood.

Development

Initial setup:

npm run setup

Start dev server:

npm run dev

Deployment

npm run build
npm start

Connecting to your database

This project uses postgresql. Configure your .env file with corresponding informations.

You can then use npx prisma db push to create the db for you, but it won't create the schemas for you (because project uses some specific postgresql extension that is specified in migration files).

So use npx prisma migrate dev.

You can seed it npx prisma db seed.

Testing

Cypress

npm run test:e2e:dev # run end to end tests. Setup your .env.teste2e file.

Vitest

npm run test # runs unit tests and components tests
npm run test:db # runs database tests. You might want to setup your .env.test file for that

Type Checking

This project uses TypeScript. It's recommended to get TypeScript set up for your editor to get a really great in-editor experience with type checking and auto-complete. To run type checking across the whole project, run npm run typecheck.

Linting

This project uses ESLint for linting. That is configured in .eslintrc.js.

Formatting

We use Prettier for auto-formatting in this project. It's recommended to install an editor plugin (like the VSCode Prettier plugin) to get auto-formatting on save. There's also a npm run format script you can run to format all files in the project.