Mock Premier League is an app that mocks the English Premier League teams and matches.
- User can sign up.
- User can login.
- User (admin) can create a team.
- User (admin) can delete a team.
- User (admin) can update a team.
- User (admin) can view a team.
- User (admin) can create a fixture.
- User (admin) can delete a fixture.
- User (admin) can update a fixture.
- User (admin) can view a fixture.
- Users can view teams.
- Users can view completed fixtures.
- Users can view pending fixtures.
- Users can robustly search fixtures/teams.
-
NodeJS A run time environment based off Chrome's v8 Engines for writing Javascript server-side applications.
-
Express Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
-
ES Lint A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
-
Postgresql A free and open-source relational database management system emphasizing extensibility and technical standards compliance.
-
Postman Postman is the only complete API development environment, and flexibly integrates with the software development cycle.
-
Heroku is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud.
-
ElephantSQL is a PostgreSQL database hosting service.
- You need to have node installed on your system
- To clone this repo, you need to open a command line terminal and run :
git clone https://github.com/ikeshegs/mock-premier-league-backend-nodejs.git
-
Install all dependencies used in this project by running
npm install
-
Set the following environment variables in your .env file:
- DB_URL - The URL to your database
- JWT_SECRET - A random string used for generation authorization tokens.
- CALL_PER_MINUTE - This specifies the number of calls made to your APIs from the same IP address before blocking access.
- Run
npm run start-dev
- Find docs here
- Ikechukwu Okoro