- Clone this project and install dependencies
git clone https://github.com/codeeong/basic-auth-app.git
cd basic-auth-app
npm install
- Create databases in your local mysql db shell:
create database bambuauthchallenge;
create database bambuauthchallengetest;
-
Go to
/server/models/config.js
and changeUSERNAME
andPASSWORD
fields to your own db's credentials -
Run server side - this will create the necessary tables and start up the server
cd server
node start.js
- Run front end of project in a new shell tab from project root and find it at http://localhost:3000
npm run start
- Run all tests on project root - front + backend
npm test