-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
41 lines (27 loc) · 1.03 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
== README ==
Description: Chat application with React frontend, Node sockets, Java API and file server, and PostgreSQL database.
=== What important files live where ===
/backend
/backend_design_spec.txt: backend information and design details
/RESTService/src/main
/java: Java files for API and file services
/resources: Static assets to be served
/SocketService/socketServer.js: mock server with sockets to use for development
/client
/js: JavaScript files and React components
/components: react component files
/styles: css files
/test: component and function test files
/node_modules: dependency libraries and frameworks
=== Run instructions ===
To install node dependencies, run:
$ npm install
To create a PostgreSQL database instance:
$ createdb -h localhost -p 5432 -U postgres chatAppDB
To bundle frontend code and start the backend (web server and socket server), run:
$ npm start
To open a chrome client on localhost:8080, run:
$ npm run start:client
=== Test instructions ===
To test the client-side code, run:
$ npm test