This backend server is intended to be used for hackathon management. It is a simple REST API that allows you to create and manage hackathon attendees and their skills. Built with Flask and Flask-SQLAlchemy, it uses SQLite as a database and Docker for containerization.
The project is structured as follows:
app/
- Contains the Flask application and all of its components__init__.py
- Initializes the Flask applicationdatabase.py
- Initializes the databasemodels/
- Contains the database models__init__.py
- Initializes the database modelsuser.py
- Defines theUser
modelskill.py
- Defines theSkill
model
routes/
- Contains the API routes__init__.py
- Initializes the API routesuser.py
- Defines the/user
API routesskill.py
- Defines the/skill
API routes
users.json
- Contains the initial users to be added to the database
- Clone the repository
git clone https://github.com/leogjhuang/hackathon-server.git
- Build and run the Docker container
docker-compose up --build
- Navigate to
http://localhost:5000
GET /users
- Returns a list of all usersGET /users/<id>
- Returns the user with the specified IDPUT /users/<id>
- Updates the user with the specified ID
GET /skills/<min_frequency>/<max_frequency>
- Returns a list of all skills with a frequency between the specified minimum and maximum values
Distributed under the MIT License. See LICENSE
for more information.