Skip to content

Hub for people to search for local organizations dedicated to helping Black LGBTQ+ communities in partnership with the National Black Justice Coalition

License

Notifications You must be signed in to change notification settings

calblueprint/nbjc

Repository files navigation

National Black Justice Coalition

Technologies

  • Next.js
    • NodeJS 12.18.4
    • Yarn 1.22.5
  • Typescript

Getting Started

First install the dependencies

yarn install

Then, run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

The page auto-updates as you edit the file.

Available Scripts

In the project directory, you can run:

yarn dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn db:migrate:create [migration-name]

This will generate a migration file that is compatible with Typescript. Use this script when creating a new migration file.

Do NOT use db-migrate create

yarn db:update

This will run the migrations then update Prisma. Use this script after creating your migration.

This script runs yarn db:migrate up then yarn prisma:update

yarn db:migrate

This will run db-migrate in a Typescript environment. This replaces the standalone db-migrate commands. Use this script whenever you need to use db-migrate commands that is not db-migrate create.

yarn prisma:update

Runs prisma introspect then prisma generate.

prisma introspect will read the connected database then generate a Prisma-friendly schema file.

prisma generate will update the client package with the previously generated Prisma-friendly schema file so that Prisma commands are now accessible for use.

yarn db:reset

This will drop your database then create an empty database. Make sure to run yarn db:update to get your new database up to date with the migrations.

Runs yarn db:drop then yarn db:create

yarn db:create

This create a database using the pg environment in database.json.

yarn db:drop

This drops the database using the pg environment in database.json.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

Hub for people to search for local organizations dedicated to helping Black LGBTQ+ communities in partnership with the National Black Justice Coalition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages