Create an API that serves the latest scores of fixtures of matches in a “Mock Premier League”
Admin accounts which are used to
- signup/login
- manage teams (add, remove, edit, view)
- create fixtures (add, remove, edit, view)
- Generate unique links for fixture
Users accounts who can
- signup/login
- view teams
- view completed fixtures
- view pending fixtures
- obustly search fixtures/teams
Only the search API should be availble to the public.
- NodeJs (JavaScript)
- MongoDB
- Redis
- Docker
- POSTMAN
- Jest
- Express
To install and run this project you would need to have listed stack installed:
-
Node.js
-
Docker
-
Redis
-
To run:
git clone <[email protected]:Damiloju/sterling-backend-challenge.git>
cd sterling-backend-challenge
npm install
copy .env.example .env
Fill in needed env values
npm run dev
- Install Docker
- Change to application root directory
- Build a docker image with the following command
docker build -t sterling-backend-challenge .
- Run
docker-compose up -d
- Stop Container
docker-compose down
npm run test
The API is hosted at Api URL