Themes can be changed in manifest.json
. Available themes are:
default
peachy
green
purple
blue
The manifest.json
file is also where you can change the title, description, favicon, etc.. These changes will propogate across the app as required.
npm install -g prettier concurrently
Create up a .env file in the repo root with the following. Ignore the auth stuff if you don't need auth.
Make sure to change the SESSION_SECRET
upon creation (more information).
Also notice the PORT
variable, which can be changed to run the application on a port other than 3000
.
echo "SESSION_SECRET=<session_secret>" > .env
echo "PORT=3000" >> .env
echo "DATABASE_URL=postgresql://<user>:<password>@localhost/<db_name>" >> .env
echo "AUTH_DOMAIN=<subdomain>.auth0.com" >> .env
echo "AUTH_CALLBACK_URL=http://localhost:3000/callback" >> .env
echo "AUTH_CLIENT_ID=<auth0_client_id>" >> .env
echo "AUTH_CLIENT_SECRET=<auth0_client_secret>" >> .env
Auth0 is used for user authentication. Ignore this section if your application will not require user registration.
- Set up an account on Auth0
- Add your Auth0 details to the
.env
file (detailed above)
This template uses a PostgreSQL database and the prisma ORM for management.
- Set up a PostgreSQL database (instructions).
- Make sure the database's user, password, and db name are updated in the
.env
file'sDATABASE_URL
variable. - Run
npx prisma db push
- See your database with
npx prisma studio
npm run dev
Or for production:
npm run sass
npm run build
npm start
Check typescript linting:
npm run tsc
See routes:
npm run routes