Simple Book collection Fullstack exercise.
Development mode opens the Express backend server and the React frontend app at the same time.
Not tested / implemented fully.
# Clone or download the repository
# Go inside the directory
cd fullstack-books
# Install dependencies
npm install
# Start development server
npm run dev
# then open http://localhost:3000/
# Run tests
npm test
# Build for production (Not tested)
npm run build
# Start production server (Not tested)
npm start
src/
: Contains source code of the projectserver/
: Contains source code for the Express Backend serverapp.css
: CSS file for stylesApp.js
: Main react code fileindex.js
: index for the React app
client/
: Contains source code for the React frontend clientdata.json
: The "database" fileindex.js
: The express backend approutes.js
: API endpoints for the serverstart.js
: Start script to start up backend servertest.js
: Simple Jest / Supertest file
reset.js
: Script to reset the database (used innpm test
)
Use webpack to simplify development by allowing live reloading.
Disabled automatically opening url, since the webpack opens the url too fast resulting in a connection error.
Nodemon used to monitor changes in files to reload server.
Concurrency package used to run the development command with two servers simultaneously.