Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schilder2000
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schilder
schilder2000
Commits
2f6c2f1b
Commit
2f6c2f1b
authored
9 months ago
by
Thomas Schneider
Browse files
Options
Downloads
Patches
Plain Diff
Add README
parent
e66aa31e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.rst
+95
-0
95 additions, 0 deletions
README.rst
with
95 additions
and
0 deletions
README.rst
0 → 100644
+
95
−
0
View file @
2f6c2f1b
============
schilder2000
============
Schildergenerator reloaded – generate signs to print out with a simple web
interface. A rewrite from scratch of the old schildergenerator_.
Development setup
-----------------
Please configure your editor to respect the EditorConfig_ settings.
Code and build process is split between frontend and backend part. Note that
the frontend must be build before the backend, as its results will be
incorporated as static files into the Python package.
Frontend
~~~~~~~~
The frontend support code is written in TypeScript and Less, and compiled and
bundled using Webpack. To install the dependencies and start a development
server:
.. code:: shell-session
% npm install # may update package-lock.json
% npm clean-install # uses package-lock.json exactly
% npm run start
This starts a development server that watches for changes and automatically
rebuilds the bundle, and instructs the browser to reload using a WebSocket
connection. To build for production:
.. code:: shell-session
% npm run build
Backend
~~~~~~~
Dependencies are managed using PDM_, the build process is handled by
PDM-Backend_.
You may want to create a virtualenv explicitly in order to install pip_ as well,
and/or activate the virtualenv:
.. code:: shell-session
% pdm venv create --with-pip
% eval $(pdm venv activate)
To install dependencies, including those for development:
.. code:: shell-session
% pdm install --dev
Create a directory ``instance`` for your instance configuration, and edit the
configuration:
.. code:: shell-session
% cp -r examples instance
% $EDITOR instance/config.py
Do replace ``SECRET_KEY`` with a unique, random value; and customise
``SQLALCHEMY_DATABASE_URI`` according to your environment. See `SQLAlchemy
documentation`_ for details. You may need to create a database in your database
server beforehand. Unfortunately, SQLite support is broken at the moment.
To start the development server:
.. code:: shell-session
% pdm run serve
If you want to use the ``flask`` command-line tool without specifying the app
every time, you can use a ``.env`` file:
.. code:: shell-session
% echo FLASK_APP=schilder2000 >> .env
Production setup
----------------
Don’t. This is not ready yet.
.. _schildergenerator: https://git.fsmpi.rwth-aachen.de/schilder/schildergenerator
.. _EditorConfig: https://editorconfig.org/
.. _PDM: https://pdm-project.org/
.. _PDM-Backend: https://backend.pdm-project.org/
.. _pip: https://pip.pypa.io/
.. _`SQLAlchemy documentation`: https://docs.sqlalchemy.org/en/20/core/engines.html#database-urls
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment