To set up the Submissions Platform, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/your-username/submissions-platform.git
- Navigate to the project directory:
cd submissions-platform
- Install the required dependencies:
npm install
- Install dotenv-cli
npm install -g dotenv-cli
- Add a
.env
and.env.test
file in your root with the following configurations:
PORT=3000
DATABASE_URL="./db/dev.db"
PORT=3000
DATABASE_URL="./db/test.db"
- Run database setup commands
npm run db:push:dev
npm run db:push:test
- Start the application:
npm run dev
- Run the tests:
npm run test
That's it! You have successfully set up the Submissions Platform on your local machine.