Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 773 Bytes

README.md

File metadata and controls

60 lines (37 loc) · 773 Bytes

express-react-e2e-testing-demo

Express/React demo with Jasmine/Zombie end-to-end tests

Setup

Clone and install dependencies:

npm install

.env

Refer to .example.env. A secret key needs to be set for JWT. Either cp .example.env .env or manually create .env and set your own secret value:

SECRET_KEY=s0m3sup3rS3CreTKey

Testing

For Docker fans

Start a MongoDB development server:

docker run --name dev-mongo -p 27017:27017 -d mongo

Once created, you can start and stop the container like this:

docker stop dev-mongo
docker start dev-mongo

Execute

npm test

Development

To start a Dockerized Mongo container, see above...

Seed database:

node db/seed.js

Run server:

npm start