This project allows users to view and analyze Viking Lotto and EuroJackpot Lotto results, providing insights into number frequency, consecutive number pairs, hot and cold numbers, common number ranges, and changes in the sum of numbers for each game.
Backend:
- NodeJS
- Express
- MongoDB
Frontend:
- React
- Sass
- ChartJS
The backend uses NodeJS and Express, with MongoDB as the database of choice. The API provides robust routes for handling products, ensuring efficient data retrieval and manipulation.
The frontend is developed with React, offering a highly responsive and interactive user interface. ChartJS is integrated into the project to visualize data. This feature allows users to gain insights into the various statistics.
React useContext hook is used for state management, providing a efficient way to handle application state. React fetch is for asynchronous data fetching from MongoDB.
- Create a MongoDB database and obtain your
MongoDB URI- MongoDB Atlas - Create
.envfile an add the following
PORT = 5500
MONGO_URI = your mongodb uri
npm install
cd frontend
npm install
# Run frontend only
npm start
# Run backend only
npm run dev
# Create frontend prod build
cd frontend
npm run build
