A Blogging application using Typescript
- clone the project
- Run
npm install
in the main folder to install server side dependencies cd client
and then again runnpm install
to install client side dependencies- Start postgres and do the following
- Execute the SQL statements in
migrations/migrate-db.sql
to create the required databases for dev and test - Execute the SQL statements in
migrations/migrate-tables.sql
to create the required tables in both dev and test databases - Open
config/config.json
file and change username and password for postgresql (The default user ispostgres
with no password) - Set up the value for jwt private key by typing the following command in shell
export JWT_PRIVATE_KEY={Put your jwt private key here}
- Execute the SQL statements in
- Now, do any of the following
npm run server
- To start only the servernpm run client
- To start only the clientnpm run dev
- To start both server and clientnpm run integ-test
- To run the tests
Use this postman collection to test the endpoints - https://www.getpostman.com/collections/4c7fb79c644c7601eb79
https://github.com/karthickram286/blog-ts/issues
- Run the project locally in Development mode
- Make changes
- Raise a PR