-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
107 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
================== | ||
Chapter | ||
================== | ||
|
||
The Chapter repository contains the a gtm app purpose-built for developer tools. | ||
|
||
.. seealso:: It is built on the `Litestar <https://litestar.dev>`_, `NextJS <https://nextjs.org/>`_, | ||
:doc:`SAQ <saq:index>`, `TailwindCSS <https://tailwindcss.com/>`_ and uses 3rd party APIs for scrtaping and data enrichment. | ||
|
||
Installation | ||
------------ | ||
|
||
To get started, check out :doc:`the installation guide <usage/installation>`. | ||
|
||
Usage | ||
----- | ||
|
||
To see how to use Chapter, check out :doc:`the usage guide <usage/index>`. | ||
|
||
Reference | ||
--------- | ||
|
||
.. toctree:: | ||
:titlesonly: | ||
:caption: Documentation | ||
:hidden: | ||
|
||
usage/index | ||
|
||
.. toctree:: | ||
:titlesonly: | ||
:caption: Development | ||
:hidden: | ||
|
||
changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
===== | ||
Usage | ||
===== | ||
|
||
.. toctree:: | ||
:titlesonly: | ||
|
||
installation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
=============== | ||
Getting Started | ||
=============== | ||
|
||
The following is a guide to help you get this repository running. | ||
|
||
Setup | ||
----- | ||
|
||
Most of the development-related tasks are included in the ``Makefile`` (See: :doc:`development`). | ||
To install an environment, with all development packages run: | ||
|
||
.. code-block:: bash | ||
make install | ||
This command does the following: | ||
|
||
- Install ``pdm`` if it is not available in the path. | ||
- Create a virtual environment with all dependencies configured | ||
- Build assets to be hosted by production asset server | ||
|
||
Edit ``.env`` configuration | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
There is a sample ``.env`` file located in the root of the repository. | ||
|
||
.. code-block:: bash | ||
cp .env.example .env | ||
.. tip:: ``SECRET_KEY``, ``DATABASE_URI``, and ``REDIS_URL`` are the most important config settings. | ||
Be sure to set this properly. | ||
|
||
You can generate a ``SECRET_KEY`` by running: | ||
|
||
.. code-block:: bash | ||
❯ openssl rand -base64 32 | ||
+U9UcN0meCsxkShMINkqZ7pcwpEpOC9AwOArZI6mYDU= | ||
Deploy Database Migrations | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
You can run most of the database commands with the integrated CLI tool. | ||
|
||
To deploy migration to the database, execute: | ||
|
||
.. code-block:: bash | ||
❯ app database upgrade | ||
2023-06-16T16:55:17.048183Z [info ] Context impl PostgresqlImpl. | ||
2023-06-16T16:55:17.048251Z [info ] Will assume transactional DDL. |