support for database seed

This commit is contained in:
Mikayla Dobson
2022-09-21 16:17:40 -05:00
parent 2e4124965c
commit fbaca9b97d
3 changed files with 80 additions and 3 deletions

View File

@@ -13,11 +13,11 @@ The project directory is organized as follows:
- ``routes``: this hosts the Express router which powers the project's REST API
- ``server.js``: the backend "entryway" for the application, which hosts the server and the integration for the API.
## Installing and Running the Project Locally
## Installing and Running the Development Build Locally
1. Clone the project repository from the root level.
2. Node modules are hosted both at root directory level and within the client directory.
3. At the root directory level, run ``npm install`` to install backend dependencies.
4. Change into the ``/client`` directory and run ``npm install`` to install frontend dependencies.
5. Still within ``/client``, run ``npm run dev`` to start the Vite development server.
6. In another terminal window at the root directory level, run ``node server.js`` to start the localhost server.
6. In another terminal window at the root directory level, run ``npm start`` to start the localhost server.
7. It should indicate that the server is listening on its designated port, and log each database transaction to the console.