Skip to content
/ restcraft-template Public template

This is a template for creating a ResCraft project.

License

Notifications You must be signed in to change notification settings

lsfratel/restcraft-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestCraft Template

This is a template for creating a ResCraft project.

pdm-managed

Use this template

To use this template rename the restcraft_app to your project name, then edit the settings.py and the __init__.py.

# your_project_name/settings.py
VIEWS = {
    "YOUR_PROJECT_NAME.views.my_view",
}

# your_project_name/__init__.py
os.environ.setdefault('RESTCRAFT_SETTINGS_MODULE', 'YOUR_PROJECT_NAME.settings')

or you can use this one line command:

# Run this command inside the clonned template
mv restcraft_app YOUR_PROJECT_NAME && find . -type f -exec sed -i 's/restcraft_app/YOUR_PROJECT_NAME/g' {} +

Then install the dependencies.

pdm install

Scripts

Here are some scripts that you can use:

# Start the development server with automatic reload.
pdm dev
# Unittesting
pdm test

About

This is a template for creating a ResCraft project.

Topics

Resources

License

Stars

Watchers

Forks

Languages