To-do app
How to start: Note: You will need postgreSQL database to use this application because some queries are specific to that DBMS.
- Once you download the project, open a new terminal.
- Run
npm install
in the terminal. - Open PGadmin on your computer which will open a new browser tab. Create a new database called
todo-app
- In the
server
folder copy.env.template
and duplicate it to a new file called.env
. Fill in the database username and password from the database you created using pgAdmin. Generate a random string for using asACCESS_TOKEN_SECRET
. - Open an sql editor inside pgAdmin paste the code from the
database.sql
file. This will create the tables need for the application. - Back in vscode, open a new terminal. Run
npm run dev-ui
This will start the ui server. - Open another terminal. Run
npm run dev-server
This will start the database server. - Open
localhost:3000
in your browser. - Now you can start using the app!