Project repository for Web applications (DAT076) at Chalmers University of Technology.
-
/client - source code for the frontend created in React.
-
/server - source code for the backend created in Express.
-
/docs - the final report can be found here.
Please note that these instructions assume that Node.js version 16+ is installed and configured.
- Use a terminal of your choice to clone the repository:
git clone https://github.com/Kexon/DAT076.git
- Head into the cloned folder:
cd DAT076
- Create a .env file with the following content:
SECRET_KEY="funny_secret_bere"
DB_URI="<DB_URI to a MongoDB database>"
DB_URI_TEST="<DB_URI to a MongoDB test database>"
- Run the following two commands to install all the required packages:
cd client && npm install && npm run build
cd .. && cd server && npm install
- From the server folder, run the following command to start the application:
npm run dev
Go to http://localhost:8080 to use the application. Note that you need to be logged in to be able to access any features. You can create an account from http://localhost:8080/signup.