Skip to content
/ Penjar Public template

Penjar === PostgreSQL Express Node Jest Axios React

License

Notifications You must be signed in to change notification settings

NguyenAndrew/Penjar

Repository files navigation

Penjar - PostgreSQL Express Node Jest Axios React

Penjar is the fastest way to spin up a Full Stack application (React + Node) with Jest testing. Evolution and based off of the Careen stack. Now using TypeScript!

Architecture

Architecture

QuickStart - Running Locally

  1. Navigate to the run_locally directory
  2. Open terminal of choice in the run_locally directory
  3. Install your dependencies with npm install
  4. Run your application with npm run start (Note: start:windows, start:linux, and start:mac are also available)
  5. Ready to Code!

QuickStart - Running on Docker

  1. Make sure you are on the root directory
  2. Build the docker image: docker build -t my-penjar-app-image .
  3. Run the image as a docker container: docker run -p 8080:8080 -it --rm --name my-running-penjar-app-container my-penjar-app-image

Quickstart - Editting Diagrams

  1. Download Draw.io Desktop Edition
  2. In diagrams folder, open architecture.drawio.png in Draw.io Desktop Edition
  3. Make changes
  4. Click save button!

Quickstart - Upgrading (Updating) all dependencies

  1. Note: This command will update dependencies in the following folders: run_locally, back_end, and front_end
  2. Navigate to the run_locally directory
  3. Open terminal of choice in the run_locally directory
  4. Check which dependencies need to be upgraded with npm run dependup:check
  5. Upgrade all dependencies with npm run dependup
  6. Upgrade dependencies in your package-lock.json with npm install
  7. Optional: Check to see which dependencies were not updated (due to failing tests) with npm run dependup:check

Quickstart - Configuring a database / Adding environment based configuration

  1. Navigate to the back_end directory
  2. Within the "config" directory, add variables that either load in "hard coded values" or "reads from environment variables", which will be used to create the config object
  3. Optional: Using config object, you can obtain values needed to setup a database client

Roadmap

  • Add rest of tests for existing code on the back end

About

Penjar === PostgreSQL Express Node Jest Axios React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published