flatline01 / react-starter-project

Repository from Github https://github.comflatline01/react-starter-projectRepository from Github https://github.comflatline01/react-starter-project

React

Actual project root. We have a node/express backend here, and run the front end off the sakila app folder.

We will use the default movie store demo database provided by mysql.

This is NOT a production ready repo. This is more trying to glue together react and express into a singular project, so we dont have to run two services or deployments. There is minimal design, just enough to make the site work.

There is currently no auth or security implemented. The express backend will only echo requests and/or success messages without committing changes to the database. This will be phase two, as we set up tokens, users, and auth.

Adding
"proxy":"http://localhost:3001/", to the react package.json will proxy requests to the back end while running the development server. Adding a setupProxy.js will be even better.

Resources and links

Success! Created sakila at C:\inetpub\wwwroot\react-starter-project\sakila Inside that directory, you can run several commands:

npm start Starts the development server.

npm run build Bundles the app into static files for production.

npm test Starts the test runner.

npm run eject Removes this tool and copies build dependencies, configuration files and scripts into the app directory. If you do this, you can’t go back!

Project uses dotenv to load enviroment variables. Rename .env.example to .env and add your paths and keys. On a running instance, these would be controlled via process.env variables.

We suggest that you begin by typing: nodemon //in the root cd sakila npm start

About


Languages

Language:JavaScript 68.6%Language:CSS 15.1%Language:SCSS 11.8%Language:HTML 3.8%Language:Pug 0.5%Language:Shell 0.2%