A template for building web applications using the PERN (PostgreSQL, Express.js, React, Node.js) stack.
-
Don't fork or clone this repo! Instead, create a new, empty directory on your machine and
git init(or create an empty repo on GitHub and clone it to your local machine) -
Add this template as a remote and merge it into your own repository
git remote add boilermaker git@github.com:FullstackAcademy/capstone-app-template.git
git fetch boilermaker
git merge boilermaker/main- Install packages
npm i- Add a
.envfile with your secret value for auth
JWT_SECRET='somesecretvalue'
- Create the database
createdb your-database-name- Update
src/server/db/client.jsto reflect the name of your database
const connectionString = process.env.DATABASE_URL || 'https://localhost:5432/your-database-name';- Seed the database
npm run seed- Start the server
npm run dev-
Open your browser at
http://localhost:3000 -
Build something cool! 😎