Part of Functional Programming Odd Semester 2023/2024 Final Project
by: bonaventuragal
starTrack is a web based series (TV Series, Film, Comic, Novel) progress tracker. Built using Haskell.
- Install
haskellandcabal. - Install
PostgreSQL. - Clone this repository.
- Run
psql -f startrack.sql(assuming thePostgreSQLuser ispostgres) to create a database. Alternatively, manually create aPostgreSQLdatabase and then run the SQL queries instartrack.sql. - Create a
.envfile at the root of the project. - Fill the
.envfile with:
DATABASE_URL=**YOUR DATABASE CONNECTION URL**
JWT_SECRET=**A SECRET FOR JWT**Set the values according to your specific configuration. For example:
DATABASE_URL=postgresql://username:password@localhost:5432/startrack
JWT_SECRET=mysecretRun cabal run at the root of the project to start the server. The server will run at port 8000. You can send a GET request to localhost:8000/hello to check the server.
- The
startrack.sqlcontains SQL queries to create the database and add 20 series to the database. - The
startrack.sqlincludes an SQL query to add an admin account with usernameadminand passwordadmin. This account can be used to login as admin on the web.