Skip to content

CommunityFundIS/web

Repository files navigation

Community Fund

-

This project is based off kriasoft/react-starter-kit

To run the project:

  1. Install yarn and docker

  2. Run Install

     yarn install
    
  3. Create a .env file

     export DB_HOST="localhost"
     export DB_PORT=5432
     export DB_NAME="communityfund"
     export DB_USER="communityfund_user"
     export DB_PASSWORD="communityfund_password"
     export JWT_SECRET="super_secret"
    
  4. Run start

     yarn start:all
    

This will start the following:

When running locally the database is run within a docker container. You can kill the local database (and flush all of the data) by running the following command:

  yarn db:stop

Commands:

  • yarn start - Start the node server.
    
  • yarn start: all - Start the local db, seed the db and start the node server.
    
  • yarn db:start - Start the local db.
    
  • yarn db:stop - Stop the local db.
    
  • yarn db:seed - Seed the local db.
    
  • yarn db:flush - Flush the local db.
    
  • yarn lint:js - Lint all the JS files
    
  • yarn lint:css - Lint all the CSS files