This project is a simple web application that allows writing and reading enthusiasts to read and upload their creative articles to an openly shared community of like minded people.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
Make sure you have the following installed on your machine:
- Docker
- Clone the repository:
git clone https://github.com/nmzz209741/inkpandas
- Navigate to the project directory:
cd inkpandas - Check whether the docker compose file is present. Check whether backend and frontend both have their .env files. If not, create the .env files on the basis of
example.envfile descriptions. Install npm dependencies for each as:npm i
- Run the command
docker compose pull - Run the script:
sh localDeployment.sh
- Create the tables in the database if it's your first time:
NODE_ENV=development PURGE=true node backend/scripts/createTables.js
- Access the web application at: http://localhost:5173 Backend API: http://localhost:3000 Database: http://dynamo-local:8000
To run the test suites available in the frontend and backend, for both, run the following command in the respective directory:
bash npm install && npm run test
To create a production build, run:
npm run buildThe production-ready files will be in the build directory.
This project is deployed to ECS. You can access it at 65.1.112.160
If you would like to contribute to this project, please fork the repository and submit a pull request.