A Blogging application using Typescript
- clone the project
- Run
npm installin the main folder to install server side dependencies cd clientand then again runnpm installto install client side dependencies- Start postgres and do the following
- Execute the SQL statements in
migrations/migrate-db.sqlto create the required databases for dev and test - Execute the SQL statements in
migrations/migrate-tables.sqlto create the required tables in both dev and test databases - Open
config/config.jsonfile and change username and password for postgresql (The default user ispostgreswith 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