Backend for MyArtverse, will be merged into the actual project once MVP is completed
Note
If you have Docker installed, check if the Docker engine is currently running!
- For Windows: run
Start-Service docker - For macOS/Linux: run
sudo service docker status
- Clone the
.env.exampleand rename it to.env.- Windows:
copy .env.example .env. - macOS/Linux:
cp .env.example .env
- Windows:
- Run
docker-compose up -d; this will spin up MinIO, Mailslurper, and a Postgres containers - If all containers are running, access the MinIO dashboard by visiting http://localhost:9090; the login credentials are
MYARTVERSEas the user, andPASSWORD(in all caps) as the password- You can change these default credentials from the docker-compose file
- Once granted access, head over to "Access Keys" page and create an access key
- Enable "Restrict beyond user policy", paste the configuration below and click "Create"
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:ListBucketMultipartUploads",
"s3:PutObject",
"s3:DeleteObject",
"s3:AbortMultipartUpload"
],
"Resource": [
"arn:aws:s3:::myartverse"
]
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject",
"s3:ListMultipartUploadParts"
],
"Resource": [
"arn:aws:s3:::myartverse/*"
]
}
]
}- Then, create a bucket under Administrator > Buckets, and give it any name you give it
- Install this project's dependencies by running
yarnoryarn install - Run the server with
yarn devthat can be accessed via http://localhost:8081
Mailslurper is utilized when registering an email during development, all emails are sent to 127.0.0.1:2500, visit http://localhost:8080 to check your inbox.
Apache-2.0