Giter VIP home page Giter VIP logo

gumdrop-crm's Introduction

Duncle

Local ENV setup

.env file

Populate your app with these variables with an .env file at the root.

REACT_APP_DATABASE_URL= # might want to use 3.22.75.56 instead of api.sn.com
REACT_APP_DATABASE_USERNAME=
REACT_APP_DATABASE_PASSWORD=

REACT_APP_SALT=
REACT_APP_ENCRYPTION_PASSWORD=

# Only needed since there's a babel-loader mismatch between CRA and storybook
# https://github.com/facebook/create-react-app/issues/10123
SKIP_PREFLIGHT_CHECK=true

Available Scripts

In the project directory, you can run:

npm start

NOTE: this is used to start up a node.js server, which Heroku uses to serve up static build files

npm start:dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

npm run storybook

It's possible you'll need to configure these variables in your .rc file

# for storybook
# export NODE_ENV=development
# export BABEL_ENV=$NODE_ENV
echo NOTE: hard coding development for both the NODE_ENV and BABEL_ENV.. see https://github.com/facebook/create-react-app/issues/2377
## Learn More

This project, like literally every single other ReactJS app, was bootstrapped with Create React App.

Useful GCloud commands

gcloud config unset project

Resets configuration for the current project. This is useful if you need to switch accounts

gcloud init

Initializes all configuration to deploy the app to the cloud

gcloud app deploy

deploys the app to the specified environment

Install certs on AWS instance

  1. Sudo sudo su
  2. Set these env variables
DOMAIN=api.sergionajera.com
WILDCARD=*.$DOMAIN
  1. Run certbot command sudo certbot -d $DOMAIN -d $WILDCARD --manual --preferred-challenges dns certonly

Idea to automate: set up a scheduled job to run certbot renew every other month

gumdrop-crm's People

Contributors

sergnio avatar

Watchers

James Cloos avatar  avatar

Forkers

henninb

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.