citation-api
Science Score: 18.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (3.2%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
·
Repository
Basic Info
- Host: GitHub
- Owner: TP-MAALSI23
- License: apache-2.0
- Language: Python
- Default Branch: main
- Size: 43.9 KB
Statistics
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Created over 2 years ago
· Last pushed over 2 years ago
Metadata Files
Readme
License
Citation
README.md
Build for x86 arch from a Mac M1
docker buildx build . --platform linux/amd64 -t citation-api:0.1.0-x86
First install
Its a two step process.
Init SSL certs
This will boot up an nginx server with ACME webroot challenge minimal config and use cerbtot to fetch a set of SSL certificates.
sh
docker compose -f init-ssl-compose.yml up -d nginx
docker compose -f init-ssl-compose.yml up certbot
docker compose -f init-ssl-compose.yml kill
Application start up
sh
docker compose up -d
Renew SSL cert
sh
docker compose up certbot
.env content
APPENV APPPORT DOMAIN EMAIL
Owner
- Name: TP-MAALSI23
- Login: TP-MAALSI23
- Kind: organization
- Repositories: 1
- Profile: https://github.com/TP-MAALSI23
Citation (citation-api/api.py)
from flask import Flask
from dotenv import load_dotenv
import os
# Load environment variables from the .env file
load_dotenv()
app = Flask(__name__)
# Check the value of APP_ENV to enable or disable debugging
if os.getenv('APP_ENV') == 'dev':
app.debug = True
# Get the port number from the APP_PORT environment variable or use 5000 as a default
port = int(os.getenv('APP_PORT', 3000))
# Define your API routes and functions here
@app.route('/')
def hello_world():
return 'Hello, World!'
# Add more routes and functions as needed
if __name__ == '__main__':
# Run the application on the specified port
app.run(host='0.0.0.0', port=port)
GitHub Events
Total
Last Year
Dependencies
Dockerfile
docker
- python 3.12.0-slim build
docker-compose.yml
docker
requirements.txt
pypi
- Flask ==2.2.2
- Werkzeug ==2.3.8
- python-dotenv ==0.21.0