This is a backend example using Spiel Server.
- MongoDB
- Node
git clone https://github.com/spiel-examples
Enter to the folder and execute:
npm install
Create database in mongo with the name listingPeople, create an user asigned to it and a collection people.
Create a script file run.sh in root path of the project:
export SERVICE_PORT=8000
export MONGO_USER=your_user
export MONGO_PASSWORD=your_password
export MONGO_HOST=localhost
export MONGO_DATABASE=listingPeople
node_modules/nodemon/bin/nodemon.js --watch 'app/**/**' -e ts --exec 'ts-node' ./app/index.ts
npm run watch
With the project runing:
npm test