A full-stack web application for hosting and participating in coding competitions, developed for a university project.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
This project is a full-stack web application for hosting and participating in coding and hacking competitions. It was developed as part of the 10020 Internet Technologies module during a semester abroad at the University of the West of Scotland.
The application features a complete user authentication system, competition and submission management, and a role-based access control system for regular users, judges, and administrators.
Key Features:
- User Authentication: Secure user registration and login functionality.
- Competition Listings: View a list of active and past competitions.
- Submit Entries: Authenticated users can submit their entries for competitions.
- Rate Submissions: Judges have the ability to view and rate all submissions.
- Winner Announcements: A dedicated page to showcase the winners of competitions.
- GraphQL API: The backend is powered by a GraphQL API for efficient data fetching.
This project was built using a modern MERN-like stack, with Next.js for the frontend and a GraphQL API on the backend.
To get a local copy up and running, follow these simple steps.
Make sure you have the following software installed on your machine:
- Node.js (v16.10.0 recommended)
- npm
npm install npm@latest -g
- A running MongoDB instance (local or cloud-based)
- Clone the repo
git clone https://github.com/dettinjo/competition-web-app.git cd competition-web-app - Install root NPM packages
npm install
- Install Backend NPM packages
cd backend npm install - Install Frontend NPM packages
cd ../frontend npm install - Configure backend environment variables. Open
backend/nodemon.jsonand enter your MongoDB credentials:{ "env": { "MONGO_USER": "your_mongo_user", "MONGO_PASSWORD": "your_mongo_password", "MONGO_DB": "your_database_name" } }
You can run the frontend and backend servers separately or use the concurrent script in the root directory.
-
Run Backend Server (from the
/backenddirectory):npm start
The API will be available at
http://localhost:4000. -
Run Frontend Development Server (from the
/frontenddirectory):npm run dev
Open http://localhost:3000 to view it in your browser.
-
Run Both Concurrently (from the root directory):
npm start
The backend exposes a GraphQL API. When the server is running, you can explore the schema and test queries using the GraphQL Playground.
- GraphQL Playground URL: https://competition-web-app.herokuapp.com/playground
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the ISC License.
Joel Dettinger
Project Link: https://github.com/dettinjo/competition-web-app
