Open AndersonHJB opened 2 years ago
Tutorials would be great.
To deploy the frontend, run npm run build
when in the project's root directory. Then, the public/
directory will contain the HTML, CSS, and JS needed to deploy the website. Serving that folder as a folder of static assets is possible with any type of backend, or by using a static website service like AWS S3, GCP Buckets, Netlify, Vercel, etc.
The backend currently only works on AWS (using Lambda and DynamoDB). It is only used for sharing code snippets with other users, and is literally just two small Python files. You will need an AWS account to deploy the backend, but because the backend is so small you could easily just write your own in a day using any database and language. The backend can be deployed using this script but will require you to make a .env
file with your AWS credentials in the project's root.
意思是运行:npm run build
进行编译生成,然后可以直接静态部署不需要后端? 对于 AWS 我不是很熟悉,使用 Django 呢?如果不使用分享功能该如何修改呢?很抱歉我是个小白,希望解答。
Run: 'NPM run build' to compile and then deploy statically without a backend? I'm not familiar with AWS. How about using Django? How do I change it if I don't use sharing? I'm sorry I'm a little white, hope to answer.
太棒了!加油!希望可以添加一个部署教程,然后不知道能不能有个系列开发这个网站教程呢?小白很希望。
That's great! Come on! Would like to add a deployment tutorial, and then wonder if there will be a series of tutorials to develop the site? Xiao Bai hopes very much.