Skip to content

typetron/example-personal-blog

Repository files navigation

A simple personal blog app

Created using Typetron

Frontend created using Angular

How to start the project

This project is using Angular as a frontend framework, serving all its assets statically using Typetron. This means that you will need to build the Angular app before opening the browser. Usually, apps using Angular have their own server that resolves the frontend resources, but in this Typetron app we wanted to demonstrate it can serve static assets as well. There are other examples on the Typetron website about how you can run Typetron and a frontend server separately. That kind of setup makes use of the CORSMiddleware because they run on different ports.

Install dependencies
$ npm install
$ cd frontend
$ npm install
Run the build script to build the Angular app.
# inside the `frontend` directory
$ npm run build
# or
$ npm run build:watch # if you want to rebuild the Angular app after doing some modifications
Start the app by running this command in the root directory of the project
$ npm start

The app comes with some dummy data already in the sqlite database file. You can login with the admin user using:

Email: admin@typetron.org
Password: password

Visit localhost:8000 in a browser and explore the app.

Have fun!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published