Skip to content

Instantly share code, notes, and snippets.

"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
},
"proxy": "http://localhost:3001"
@dceddia
dceddia / users.js
Last active October 10, 2017 23:07
var express = require('express');
var router = express.Router();
/* GET users listing. */
router.get('/', function(req, res, next) {
// Comment out this line:
//res.send('respond with a resource');
// And insert something like this instead:
res.json([{
@dceddia
dceddia / config-overrides.dev.js
Created December 6, 2016 21:12
Customize Create React App without ejecting
module.exports = function(config) {
// Generate sourcemaps
config.devtool = 'source-map';
// Compile i18n messages throughout the project into JSON files
config.module.loaders[0].query.plugins = [
["react-intl", {
"messagesDir": "./build/messages/"
}]
];
@dceddia
dceddia / karma.conf.js
Created December 30, 2015 02:33
Basic Angular Karma config file
// Karma configuration
// Generated on Tue Dec 29 2015 21:08:31 GMT-0500 (EST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',