Skip to content

SanDiegoCodeSchool/hackathon-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Starter w/ Express Server, using Webpack

This is a project template that can be used to quickly start a react project. It has minimal dependencies and has a server route that you can use to proxy requests without exposing your api keys.

Getting Started

Install dependencies:

$ npm install

Run the build

$ npm run build

Start the server

$ npm run start

Use case

When you create a request to a third party API from the server side (to protect your API key/credentials) you should create a .env file with your key.

This will ensure that your private credentials do not get committed to git and will not be exposed to others on Github.

You will also need to modify the server/server.js file to make your call to your api url and return back your data to your front end.

An example of a request to a mock server is shown in the file. You will replace this with the API you want data from.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published