Giter Club home page Giter Club logo

pest-sales-chatbot's Introduction

Setup for a basic PERN App

  1. Install dependencies using npm install for server and client dependencies

  2. Setup the database locally a. Database users table should have: user_id, password (you can use the initialize-user-table.sql script to build a basic table)

  3. create your .env file with the following format so that it can run locally: PORT= SALTROUNDS= SESSIONSECRET= USER= HOST= DATABASE= DATABASEPASSWORD= DATABASEPORT= Any api keys here

  4. Use the files in the database/ directory to initialize the store

  5. In the client library, change the names of the base pages (home, login, dashboard)

  6. Set up the necessary paths in client/src/redux/config to make the api work

  7. Setup git and create the github repo

  8. Create a new project in heroku. Test the front end first a. Deploy the github project under the deploy tab b. Check the logs to make sure there were no immedaite errors c. Check to make sure the home page initialized properly

  9. Provision the postgres database under add-ons. Get the credentials add them to the envirornment variables for the project in heroku

  10. Use the credentials to add the server in pgadmin. Find the gold server based on the database name. Right-click and use the Query Tool

  11. Use the database .sql files to initialize the boilerplate tables

  12. Insert a user for testing auth

  13. Test auth

Running project dev tools:

  • cd client; npm run tail -> runs tailwind dev tool
  • cd client; npm run start -> runs react
  • cd server; npm run server -> runs server
  • create another command line for usage

pest-sales-chatbot's People

Contributors

georgeschulz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.