Get the code
Lesson 1 of 3 in Run TextStack locally. About 3 minutes.
In this lesson you copy the project to your machine and prepare it to start.
Steps
-
Clone the repository.
Terminal window git clone https://github.com/mrviduus/textstackcd textstack -
Create your settings file. The file
.envholds the settings Docker reads.Terminal window cp .env.example .env -
Edit four lines in
.env.Terminal window POSTGRES_PASSWORD=local-dev-passwordJWT_SECRET=local-dev-secret-at-least-32-charactersASPNETCORE_ENVIRONMENT=DevelopmentFEATURES_V2API=trueJWT_SECRETsigns the sign-in tokens. It must be 32 characters or longer.FEATURES_V2API=trueturns on V2: the new library and reading screen the project is moving to. Leave the other lines as they are. -
Create the data folders. The backend keeps books in
./data.Terminal window make fix-permissionsYou should see:
Done.
Check yourself
- The folder
textstackis on my machine. - The file
.envexists and has my four lines. -
make fix-permissionsprintedDone.