New Remix projects can easily be created using the create-remix
CLI. In this lesson, you’ll run the following script in your terminal window npx create-remix@1.17.0 --template remix-run/indie-stack onewheel-blog
.
Once that is ran it’ll create the project and automatically run the dev server on port 3000.
Don't forget to rename file ".env.example" to ".env" before you start the application for the first time. Otherwise you will get a runtime error: Environment variable not found: DATABASE_URL.
You shouldn't have to do that unless you choose not to have it run the install for you. If you do that then it will tell you to run the install manually and then run npx remix init
which will do that for you.
I am unable to get this up & running. I even tried selecting JS instead of TS but this consistently fails with this error message:
====
Running seed command ts-node --require tsconfig-paths/register prisma/seed.ts
...
node:internal/modules/cjs/loader:944
throw err;
^
Error: Cannot find module './seed.ts' Require stack:
Ok, this was fixed by deleting the onewheel-blog
folder & running the command again with a different name for the repo. ¯_(ツ)_/¯