Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/digen21/postgraphile-boilerplate

Postgraphile Project Setup Boilerplate code
https://github.com/digen21/postgraphile-boilerplate

boilerplate expressjs nodejs postgraphile postgresql typescript

Last synced: 3 days ago
JSON representation

Postgraphile Project Setup Boilerplate code

Awesome Lists containing this project

README

        

**

Project Setup Guide 🚀

**

Follow these steps to set up the project on your local environment:

1.

Setup Environment Variables 🌐

- copy the .env.example and make new .env.
- add the required values in env file.

💡 **Tip: Check the .env.example for guidance on the format of the values.**






2.

Install Dependencies 📦

- Open your terminal in the project directory and run the following command to install all the required packages:

yarn


⏳ Note: This might take a few minutes depending on your internet speed. Make sure all dependencies are installed before proceeding.






3.

Database Setup 🗃️

- Step 1: To set up the database, run the following command:

yarn setup:db


- Step 2: You will be prompted to drop and create a new database. Type yes to allow the system to proceed.

- 🚨 Warning: Dropping the database will delete any existing data, so make sure you're okay with that before proceeding.






4.

Explore Migrations 📜

- After setting up the database, check out the migrations folder. This folder contains all the database migration files.

- 🔍 Note: Migrations ensure that the database structure is up to date with the project. No need to modify anything unless you're making schema changes.






5.

Start the Project 🏁

- Finally, to run the project in development mode, use the command:


yarn dev



🚀 Pro Tip: Once the project is running, visit http://localhost:port in your browser to see it in action!






You're all set! 🎉
If you run into any issues, feel free to check the logs for more details or contact the project maintainers.